Forums > MaxMSP

Recording lin~ possiblities.

Mar 18 2012 | 1:44 pm

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.

Mar 18 2012 | 2:54 pm

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

Mar 18 2012 | 8:21 pm

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. --

Mar 18 2012 | 9:21 pm

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!

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP