Recording lin~ possiblities.

Mar 18, 2012 at 1:44pm

Recording lin~ possiblities.

Hello all.

I was wondering if it’s possible to record line~ as a series of numbers. I’ve tried recording into a buffer to no avail and the only solution I can think of is to snapshot~ the audio data to record as numbers. I get the feeling that there should be better solutions to recording audio data as simple numbers but nothing seems to work quite how I need. The purpose is to record the audio streams and then play the data back as a series of numbers again. I get the feeling I’m missing a big trick but can’t for the life of me work out what it is.

Thank you.

#62460
Mar 18, 2012 at 2:54pm

I think the peek~ object may be what you are looking for.

#225625
Mar 18, 2012 at 8:21pm

Yes, peek~ is probably what you want for storing an array floats to be accessed as Max messages.

Or, if you want to capture all of a line~ object’s output to replay it, you can just use record~ and play~. (See example below.)

– Pasted Max Patch, click to expand. –
#225626
Mar 18, 2012 at 9:21pm

Christopher, thank you for the patch, it made me realise that I hadn’t put in an initial time for my buffer and that’s what was causing my record~ not to function correctly. I knew that line~ should be able to be recorded and played back!

Moral of the story: Sunday is for resting, not programming on a broken brain!

#225627

You must be logged in to reply to this topic.