It would be cool to have the windows of the STFT starting exactly at onsets. This would mean having windows of variable length. I do not know, if this is possible easily with librosa.
Alternatively, we could just adapt parameters like (fixed) window length and hop size accordingly to some kind of regular beat tracking. So we could have windows starting in average approximately at the right positions.
It would be cool to have the windows of the STFT starting exactly at onsets. This would mean having windows of variable length. I do not know, if this is possible easily with librosa.
Alternatively, we could just adapt parameters like (fixed) window length and hop size accordingly to some kind of regular beat tracking. So we could have windows starting in average approximately at the right positions.