But when I open the midi file on a midi player (e.g. GarageBand), the first ~60bpm tempo change only happens around the 5th bar. Here is a screenshot:
If I save the midi file with pretty_midi (mid.write("Undertale_PC_Undertale_Snowy._copy.mid")) and open it with the same midi player, this is the output:
Here are the midi file and the screenshots for reproduction:
reproduce.zip
I think there is a bug with the
get_tempo_changes()
function. It is not loading the tempo changes properly. Here is an example:But when I open the midi file on a midi player (e.g. GarageBand), the first ~60bpm tempo change only happens around the 5th bar. Here is a screenshot:
If I save the midi file with pretty_midi (
mid.write("Undertale_PC_Undertale_Snowy._copy.mid"
)) and open it with the same midi player, this is the output:Here are the midi file and the screenshots for reproduction: reproduce.zip
pretty_midi 0.2.9 and python 3.7