Skip to content

Commit

Permalink
Fix spectrum defaut scale
Browse files Browse the repository at this point in the history
  • Loading branch information
tlecomte committed Sep 29, 2021
1 parent 923fab3 commit 9e72253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion friture/spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self, parent):
self.overlap_frac = Fraction(3, 4)
self.dT_s = self.fft_size * (1. - self.overlap) / float(SAMPLING_RATE)

self.PlotZoneImage.setfreqscale(fscales.Mel)
self.PlotZoneImage.setfreqscale(fscales.Mel) # matches DEFAULT_FREQ_SCALE = 2 # Mel
self.PlotZoneImage.setfreqrange(self.minfreq, self.maxfreq)
self.PlotZoneImage.setspecrange(self.spec_min, self.spec_max)
self.PlotZoneImage.setweighting(self.weighting)
Expand Down
2 changes: 1 addition & 1 deletion friture/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, parent, engine):
# set kernel and parameters for the smoothing filter
self.setresponsetime(self.response_time)

self.PlotZoneSpect.setfreqscale(fscales.Logarithmic)
self.PlotZoneSpect.setfreqscale(fscales.Mel) # matches DEFAULT_FREQ_SCALE = 2 #Mel
self.PlotZoneSpect.setfreqrange(self.minfreq, self.maxfreq)
self.PlotZoneSpect.setspecrange(self.spec_min, self.spec_max)
self.PlotZoneSpect.setweighting(self.weighting)
Expand Down

0 comments on commit 9e72253

Please sign in to comment.