Gammatone Filterbank Toolkit 1.0

gammatone.gtgram – spectrogram-like gammatone analysis

«  gammatone.filters – gammatone filterbank construction   ::   Contents   ::   gammatone.fftweight – FFT weightings for spectrogram-like gammatone analysis  »

gammatone.gtgram – spectrogram-like gammatone analysis

gammatone.gtgram.gtgram(wave, fs, window_time, hop_time, channels, f_min)

Calculate a spectrogram-like time frequency magnitude array based on gammatone subband filters. The waveform wave (at sample rate fs) is passed through an multi-channel gammatone auditory model filterbank, with lowest frequency f_min and highest frequency f_max. The outputs of each band then have their energy integrated over windows of window_time seconds, advancing by hop_time secs for successive columns. These magnitudes are returned as a nonnegative real matrix with channels rows.

2009-02-23 Dan Ellis dpwe@ee.columbia.edu

(c) 2013 Jason Heeris (Python implementation)
gammatone.gtgram.gtgram_strides(fs, window_time, hop_time, filterbank_cols)

Calculates the window size for a gammatonegram.

@return a tuple of (window_size, hop_samples, output_columns)

gammatone.gtgram.gtgram_xe(wave, fs, channels, f_min)

Calculate the intermediate ERB filterbank processed matrix

gammatone.gtgram.round_half_away_from_zero(num)

Implement the round-half-away-from-zero rule, where fractional parts of 0.5 result in rounding up to the nearest positive integer for positive numbers, and down to the nearest negative number for negative integers.

«  gammatone.filters – gammatone filterbank construction   ::   Contents   ::   gammatone.fftweight – FFT weightings for spectrogram-like gammatone analysis  »