detly / gammatone

Gammatone-based spectrograms, using gammatone filterbanks or Fourier transform weightings.
BSD 3-Clause "New" or "Revised" License
218 stars 67 forks source link

Example!! #14

Closed Valentjno closed 3 weeks ago

Valentjno commented 3 years ago

I can have an example of Gamma tone gram generation written in Python? image

detly commented 3 years ago

It depends on what exactly you need. In the readme file it shows how you can do it from the command line with:

python -m gammatone FurElise.wav -d 10

All this does is call render_audio_from_file. Does that answer your question?

Valentjno commented 3 years ago

Thank you! But in this case in the method "render_audio_from_file" the "function" parameter is just: -> function = gammatone.gtgram.gtgram ? Is there any parameter that escapes me?

detly commented 3 years ago

-> function = gammatone.gtgram.gtgram ?

This parameter is the function used to create the gammatone spectrogram, it can be either:

The other parameters are the path to the .wav file and the time in seconds from the start you want to render until.