Forums > MaxMSP

sfrecord~ "done" signal?

Jun 18 2009 | 2:26 am

When I use the sfrecord~ object, there is a long pause after it stops. By pause I mean Max/MSP goes very slow for a few seconds. I assume this has to do with writing to the harddrive.

I would like to use the resulting .wav files as soon as possible in a self-automated patch, but there isn’t any "done writing" signal that I can use. Because of the pause I can’t trust triggering from the signal that tells it to stop. Right now I just have a long delay in place between when I tell it to stop and when I start trying to access the file. Is there a better way?

Jun 18 2009 | 2:06 pm

use a buffer~ and record~. that way you have instant access to what you recorded, in a buffer.

record~ also outputs a ramp from 0 to 1 showing how far through the buffer it’s recorded – when that reaches 1 you’re at the end, use "==~ 1." or some similar method to get a "done writing" message.

and if you need to have what you recorded as sound files too, use the "write" or "writeaiff" message to the buffer. that might cause your pause, but you can choose when it happens i guess.

hope that helps

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

Forums > MaxMSP