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
 
2) can a file be written to disc as a qlist? If so, could someone describe how to write such a file?
 
Any help will be greatly appreciated.
 
Many thanks,
 
--Richard.