CONVERT A SONG WITH VARIABLE BPM TO A FIXED BPM

217 views
Skip to first unread message

Angel Alexis Bonilla Gonzalez

unread,
Jul 20, 2022, 10:59:21 PM7/20/22
to librosa
Hello MY DOUBT IS IF IT IS POSSIBLE TO CONVERT A SONG WITH VARIABLE BPM TO A FIXED BPM. As the case may be, I have a song that is at times 120 BPM, but then increases to 124 BPM. Will it be possible with Python or some other tool to convert it to a fixed BPM?

Thank you very much for your time

Brian McFee

unread,
Jul 21, 2022, 9:32:38 AM7/21/22
to librosa
Yes, this should be doable with a few tools.

librosa has a time-varying tempo estimator, so you should be able to measure this reasonably well.

To "straighten" the metrical grid, you can use either pytsmod or (py)rubberband.  These packages both provide tools that let you map anchor point times to desired output times, see eg:
It'll be on you to determine how exactly you want to construct that mapping from the tempo estimates.  I haven't compared the two packages head-to-head, but the interfaces are similar enough that it should be easy enough for you to do.
Reply all
Reply to author
Forward
0 new messages