From 3ef9d208d8f6cd75dffe7ba69d0bdd10b992c33c Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sat, 26 Sep 2020 20:56:29 -0400 Subject: [PATCH] Graph bars using peaks, not averages --- turntable/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turntable/gui.py b/turntable/gui.py index 1078f50..1a023b4 100644 --- a/turntable/gui.py +++ b/turntable/gui.py @@ -78,7 +78,7 @@ class Plot: data = self.spectrum() if len(data) == 0: return - fft = np.mean( + fft = np.max( np.reshape( data[: len(data) // self.bars * self.bars], (-1, len(data) // self.bars) ),