mirror of
https://github.com/correl/turntable.git
synced 2024-11-23 11:09:56 +00:00
Graph bars using peaks, not averages
This commit is contained in:
parent
cbd7993275
commit
3ef9d208d8
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class Plot:
|
||||||
data = self.spectrum()
|
data = self.spectrum()
|
||||||
if len(data) == 0:
|
if len(data) == 0:
|
||||||
return
|
return
|
||||||
fft = np.mean(
|
fft = np.max(
|
||||||
np.reshape(
|
np.reshape(
|
||||||
data[: len(data) // self.bars * self.bars], (-1, len(data) // self.bars)
|
data[: len(data) // self.bars * self.bars], (-1, len(data) // self.bars)
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue