[PD] midifile ... in reverse

Claude Heiland-Allen claudiusmaximus at goto10.org
Sun Nov 1 23:31:26 CET 2009


mark edward grimm wrote:
> Is is possible to play a midifile in reverse 

Sure, if you want each note-off message to happen before its 
corresponding note-on messages!

Actually doing it might be difficult though - MIDI files have 
variable-length fields, so you probably have to decode *all* of it into 
some other format or data structure before you start playing from the end.

Writing special code to parse backwards MIDI file data (without reading 
it all and reversing...) is surely impossible, given the possible 
presence of Sequencer Specific Meta Events containing variable-length 
blocks of arbitrary binary data.

http://www.sonicspot.com/guide/midifiles.html

> with [midifile]? 

This I don't know.


Claude
-- 
http://claudiusmaximus.goto10.org




More information about the Pd-list mailing list