What's the differences between functions in librosa.core and librosa.feature?
794 views
Skip to first unread message
Denghao Li
unread,
Mar 14, 2018, 8:56:15 PM3/14/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to librosa
I mean the differences between librosa.stft and librosa.feature.chroma_stft, librosa.cqt and librosa.feature.chroma_cqt. Which should I use?
Brian McFee
unread,
Mar 15, 2018, 8:30:12 AM3/15/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to librosa
I'm not sure I understand the question, but here's a quick description of the methods you're asking about.
STFT is a standard short-time fourier transform. The signal is broken into sliding windows and each window is transformed by the FFT.
CQT differs from STFT in two major ways: 1) the frequency scale is logarithmic, not linear. 2) the window length is different for each frequency: low frequencies use long windows, high frequencies use short windows.
chroma_stft uses the STFT to generate a spectrogram, and then projects that spectrum down to a single-octave (chroma) representation.
chroma_cqt is similar, but uses the CQT instead of the STFT.