Recording lin~ possiblities.

Stephen Powell's icon

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.

amenmodem's icon

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

Christopher Dobrian's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

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

Stephen Powell's icon

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!