Signal-rate way to record a sample?

Sep 14, 2007 at 12:02am

Signal-rate way to record a sample?

Hi all,

we’re sampling a ton of stuff these weeks, and creating a small app to
help out in that department.
Since sfrecord~ is creating a bit of dynamic lag for some reason, I’d
like to know if there’s a way to trigger recordings, either to disk or
to a buffer~, at audio rates?

Cheers,
Andreas.

#33665
Sep 14, 2007 at 12:54am

definitely record into a buffer~ if you need sample-accurate start and/or stop times. sfrecord~ records directly to a sound file, and presumably incurs delays when dealing with your hard drive. recording into a buffer~ records straight into your RAM, which is about a billion times faster than a hard drive.

use a record~ object to record into a buffer~, then just write the contents of the buffer~ to a file when you’re done. just make sure you allocate your buffer~ object to a big enough size (i.e. a long enough maximum recording time), because if you run out of room in the buffer~, it’ll cut you off.

#112443
Sep 16, 2007 at 9:54am

Andreas Wetterberg schrieb:
> Since sfrecord~ is creating a bit of dynamic lag for some reason, I’d
> like to know if there’s a way to trigger recordings, either to disk or
> to a buffer~, at audio rates?

As soon you open a sound file, sfrecord~ will be ready to write, it will
have its own record buffer that is in ram…
I would rather say, sfrecord~ is a billion times faster than first
recording into a buffer~… (according to the time the recording is
saved to disk… ;-)

But if you get your information about starting the recording out of the
audio signal itself, you would need in both cases a little delay~ to
still capture the start of your sound…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#112444

You must be logged in to reply to this topic.