eelbrain.gammatone_bank(wav, f_min, f_max, n, tstep=None, integration_cycles=None, integration_window=None, location='right', name=None)

Gammatone filterbank response

  • wav (NDVar) – Sound input.

  • f_min (float) – Lower frequency cutoff.

  • f_max (float) – Upper frequency cutoff.

  • n (int) – Number of filter channels.

  • tstep (float) – Time step size in the output (default is same as wav).

  • integration_cycles (float) – Number of cycles over which to integrate filter output (default 2).

  • integration_window (float) – Integration time window in seconds (can be specified as alternative to integration_cycles; e.g. 0.010 for 10 ms).

  • location (Literal['left', 'right', 'center']) –

    Location of the output relative to the input time axis:

    • right: gammatone sample at end of integration window (default)

    • left: gammatone sample at beginning of integration window

    • center: gammatone sample at center of integration window

    Since gammatone filter response depends on integration_window, the filter response will be delayed relative to the analytic envlope. To prevent this delay, use location=’left’

  • pad – Pad output to match time axis of input.

  • name (str) – NDVar name (default is

Return type:



This function uses the <> library, which is a Python port of Malcolm Slaney’s and Dan Ellis’ MATLAB gammatone filterbank. It requires the fmax bug-fix branch, which can be instaled with: