Archived. The repository is read-only: no more fixes or releases will come.
pip install gammatoneGammatone Filterbank Toolkit
Utilities for analysing sound using perceptual models of human hearing.
Summary
This is a port of Malcolm Slaney's and Dan Ellis' gammatone filterbank MATLAB code, detailed below, to Python 2 and 3 using Numpy and Scipy. It analyses signals by running them through banks of gammatone filters, similar to Fourier-based spectrogram analysis.

Installation
You can install directly from this git repository using:
pip install https://github.com/Lightning-Sandbox/gammatone/archive/refs/heads/main.zip
... or you can clone the git repository however you prefer, and do:
pip install .
... or:
python setup.py install
... from the cloned tree.
Using the Code
See the API documentation. For a
demonstration, find a .wav file (for example,
Für Elise) and run:
python -m gammatone FurElise.wav -d 10
... to see a gammatone-gram of the first ten seconds of the track. If you've
installed via pip or setup.py install, you should also be able to just run: