melanchall / drywetmidi

.NET library to read, write, process MIDI files and to work with MIDI devices
https://melanchall.github.io/drywetmidi
MIT License
523 stars 73 forks source link

MIDI Tempo changes count returns 1 but the song has 6 tempo changes. #281

Closed pabloleban closed 6 months ago

pabloleban commented 6 months ago
TempoMap tempoMap = midiFile.GetTempoMap();
var tempoChanges = tempoMap.GetTempoChanges();
Debug.Log(tempoChanges.Count()):

This only happens with this midi file specifically: https://www.vgmusic.com/music/console/nintendo/n64/zd64-03.mid The other midis that I have tested are working fine.

Dropping this file into a DAW, like FL Studio, seems to work fine.

Great library by the way.

pabloleban commented 6 months ago

Never mind. I was using the wrong midi file. My bad.