Probably the input MIDI tracks should be rounded to 48 ticks per beat, because this is the natural resolution of the Red/Blue engine. A note/rest length is (number of ticks) * (notetype speed) / 48 of a beat. Input MIDIs are usually stored at a resolution of 480, 960, or something similar, so this would allow events in them to be one tick off with no problems.
This should be done with discretize from the event-list library to avoid compounding rounding errors.
Probably the input MIDI tracks should be rounded to 48 ticks per beat, because this is the natural resolution of the Red/Blue engine. A note/rest length is
(number of ticks) * (notetype speed) / 48of a beat. Input MIDIs are usually stored at a resolution of 480, 960, or something similar, so this would allow events in them to be one tick off with no problems.This should be done with
discretizefrom theevent-listlibrary to avoid compounding rounding errors.