I have some issues with understanding the documentation on how set tempo
events and time divisions work, so it’s really not well calculated, and thus causes my code to just zoom through the MIDI file I’m throwing at it. Maybe there’s some other chunks I’m not processing at the function that should be processing MIDI events here, so I don’t really know.
An overview of PPQN:
http://midi.teragonaudio.com/tech/midifile/ppqn.htm
Some reference code I’ve used, which might help with architectural issues: https://github.com/triplefox/minimidi/tree/master/minimidi