Here's the patch by the way, it was sent off-list.

~Kyle

---------- Forwarded message ----------
From: Kyle Klipowicz < kyleklip@gmail.com>
Date: Oct 11, 2006 4:41 PM
Subject: Re: Re: [PD] Writing a MIDI file...or at least a qlist...to disc
To: Richard Bowers <richard.bowers@ntlworld.com >

Hi Richard~

This is not a silly question!  Sequencing is one of the biggest pains for many Pd users.

I think this solution would be fine, since these things don't take up much space as text.  Textfile also allows appending.  I would suggest using inter-onset intervals (IOI's) to keep track of your notes.  For example, 100 65 96 could be 100 ms from the previous note at pitch 65 and velocity 96.  You could use velocity of 0 to release the specific pitches.

Anyway, here is an example, as well as the list-help file.  Be warned, I don't have a midi device here at work, so it may not work properly!  But the general principle should be OK.

~Kyle


On 10/11/06, Richard Bowers <richard.bowers@ntlworld.com> wrote:
Thanks for your help,  Kyle. I'm replying off list because I'm a beginner and my next questions will probably be silly to most members:
 
Do you think list would be able to store between 10,000 -15,000 lines consisting of a timestamp, note number and velocity?
 
If not, would it be possible to append a written file on-the-fly using more manageable amounts of data?
 
Sorry for these annoying questions but I have trouble getting the right information from the help files (I couldn't even find the list examples you mentioned !! The 'list' help comes up with info on 'bang').
 
Regards,
 
Richard.
-----Original Message-----
From: pd-list-bounces@iem.at [mailto: pd-list-bounces@iem.at] On Behalf Of Kyle Klipowicz
Sent: 11 October 2006 20:55
To: Richard Bowers
Cc: PD list
Subject: [Norton AntiSpam] Re: [PD] Writing a MIDI file...or at least a qlist...to disc

You could use timer combined with list to record a sequence (see the sequencers in the list example docs) and then write the final message to disk using textfile.

~Kle

On 10/11/06, Richard Bowers <richard.bowers@ntlworld.com> 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
 
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.

_______________________________________________
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





--

http://theradioproject.com
http://perhapsidid.blogspot.com

(((())))(()()((((((((()())))()(((((((())()()())())))
(())))))(()))))))))))))(((((((((((()()))))))))((())))
))(((((((((((())))())))))))))))))))__________
_____())))))(((((((((((((()))))))))))_______
((((((())))))))))))((((((((000)))oOOOOOO



--

http://theradioproject.com
http://perhapsidid.blogspot.com

(((())))(()()((((((((()())))()(((((((())()()())())))
(())))))(()))))))))))))(((((((((((()()))))))))((())))
))(((((((((((())))())))))))))))))))__________
_____())))))(((((((((((((()))))))))))_______
((((((())))))))))))((((((((000)))oOOOOOO



--

http://theradioproject.com
http://perhapsidid.blogspot.com

(((())))(()()((((((((()())))()(((((((())()()())())))
(())))))(()))))))))))))(((((((((((()()))))))))((())))
))(((((((((((())))())))))))))))))))__________
_____())))))(((((((((((((()))))))))))_______
((((((())))))))))))((((((((000)))oOOOOOO