How to unify speed of multiple MIDI songs?
I plan to process large number of MIDI files and feed them into neural network. First of all, I need to convert timing of all MIDI songs to the same speed (probably to tempo = 1). Unfortunately, I'm kind of lost in which variables (actual tempo, time signature, PPQ, BPM…) I should take into account and how to make the desired calculation.
My questions are:
How to recalculate MIDI events (start time and duration) of multiple MIDI files to the same unit (e.g. tempo = 1)?
Is it enought to just recalculate tempo?
Is it sufficient to just recalculate the start time and duration of each event (while watching for Set Tempo meta events)?
1 Comments
Sorted by latest first Latest Oldest Best
A MIDI file will have a tempo and nominal 'beats'. But there is no guarantee that the musical content will align to those beats. A MIDI file is 'drawn' on graph paper, but the creator doesn't HAVE to take notice of the lines! And he often doesn't. So I'm afraid detecting and conforming musical tempo might not be as easy as you hope.
Terms of Use Privacy policy Contact About Cancellation policy © freshhoot.com2026 All Rights reserved.