Using madmom.audio.spectrogram.LogarithmicFilteredSpectrogram with a stereo wav file

23 views
Skip to first unread message

bcla...@gmail.com

unread,
Sep 26, 2019, 8:51:16 AM9/26/19
to madmom-users
Hi,

I'm new to madmom and I'm having a problem trying to use LogarithmicFilteredSpectrogram with a stereo wav file.  I've tried loading the file using load_wav_file and specifying num_channels = 1, but when I pass the output (first returned value) to LogarithmicFilteredSpectrogram unsupported operand types for :/  'float' and 'NoneType'.  Any suggestions on how to proceed?

Sebastian Böck

unread,
Sep 26, 2019, 8:54:50 AM9/26/19
to madmom-users
Hi,


On Thursday, 26 September 2019 14:51:16 UTC+2, bcla...@gmail.com wrote:
Hi,

I'm new to madmom and I'm having a problem trying to use LogarithmicFilteredSpectrogram with a stereo wav file.  I've tried loading the file using load_wav_file and specifying num_channels = 1, but when I pass the output (first returned value) to LogarithmicFilteredSpectrogram unsupported operand types for :/  'float' and 'NoneType'.  Any suggestions on how to proceed?

you can add `num_channels=1` to basically any class, including `LogarithmicFilteredSpectrogram`. madmom automatically passes additional arguments to the classes/functions it calls.

HTH
Reply all
Reply to author
Forward
0 new messages