Conversion of tick lengths with midi export
For some analysis I would like to downsample a batch of midi files made with MuseScore. The normal resolution (ppq) of midi files with musescore is 480, downsampling to something like 120 should be no problem in most cases. However, I can't figure out how the musescore export does the conversion to ticks when exporting to Midi.
For example: with a resolution of 480, a quarter note usually becomes 479 ticks (the expected 480, but one tick goes to the start of the next note). However, I also see cases where a quarter note is converted to 478 ticks. Same goes for notes of other lengths.
Has anyone encountered this? Is there a good way to easily figure out those 'missing' ticks, or might it be better to look into other methods for downsampling?
Thanks!
Comments
In order to do more than guess, we'd need you to attach the score you are having problems with. Some things that can affect note length are the swing settings, articulations or slurs added to the notes, or edits made using the Pianoroll window. There can also be roundoff issues due to the presence of tuplets.
In reply to In order to do more than by Marc Sabatella
I can't provide you with a concrete example, but it might very well be a multiple of the factors you named. Reversing that to the proper, full midi durations could be impossible. Thanks for your answer!