python-midi icon indicating copy to clipboard operation
python-midi copied to clipboard

a midifile can be inadvertently written with absolute ticks

Open belm0 opened this issue 7 years ago • 0 comments

Currently it's possible to call make_ticks_abs() on a Pattern and write it out to a midifile with absolute ticks, which doesn't adhere to the MIDI file standard. (aplaymidi and some other MIDI tools seem to support this non-standard tick format, which can make more of a problem since you won't realize you're creating bad files until you use other tools.)

write_midifile() should at least assert that the pattern's tick mode is relative.

belm0 avatar Jun 05 '18 11:06 belm0