[PD] Writing a MIDI file...or at least a qlist...to disc

Martin Peach martin.peach at sympatico.ca
Thu Oct 12 00:35:25 CEST 2006

Richard Bowers wrote:
> I've done a quick search on the archive for help on this topic, but I 
> didn't find anything crystal clear.
> Basically, I'm running a PD patch on a Mac which is sending 
> (internally, not through hardware) MIDI note on/off pairs to another 
> program (Arkaos). I would like to be able to capture the MIDI stream 
> within PD (or the numeric values on which the MIDI notes are based) 
> into a file for later retrieval. So
> 1) is there a purpose-built object which will handle this? or
There's [midifile] in cvs at externals/mrpeach/midifile. (or here : 
I don't know if it compiles on OS X but it should.

> 2) can a file be written to disc as a qlist? If so, could someone 
> describe how to write such a file?
You could take the outputs of [notein], [pack] them into a list along 
with some kind of time counter, and add them to a qlist.


More information about the Pd-list mailing list