Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/siggigue/pyfilterbank
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegfried Gündert committed Aug 21, 2019
2 parents 7e8c6d9 + 85e8a40 commit 14edb35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyfilterbank/gammatone.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def delay(self, bands):

def estimate_max_indices_and_slopes(self, delay_samples=None):
if not delay_samples:
delay_samples = self.samplerate/10
delay_samples = int(self.samplerate/10)
sig = _create_impulse(delay_samples)
bands = list(zip(*self.analyze(sig)))[0]
ibandmax = [np.argmax(np.abs(b[:delay_samples])) for b in bands]
Expand Down Expand Up @@ -385,7 +385,6 @@ def example_filterbank():

def plotfun(x, y):
ax.semilogx(x, 20*np.log10(np.abs(y)**2))
plt.hold(True)

gfb.freqz(nfft=2*4096, plotfun=plotfun)
plt.grid(True)
Expand Down

0 comments on commit 14edb35

Please sign in to comment.