Forums > MaxMSP

Recording to buffer, rewrite problem!

December 13, 2009 | 12:57 am

I’m working on a patch which has 4 buffers, one of which is a drum loop, the other 3 deal with recorded audio from a microphone. I’m trying to synchronise the drum loop with the recording start and stop points, but i’m having problems with the drum loop re-triggering the recording start point and therefore rewriting what has already been recorded in the buffer. I need an object which will close a gate to stop this happening.

This is what I have so far:

– Pasted Max Patch, click to expand. –

Thanks


December 13, 2009 | 1:45 am

have a look at count~ and poke~, much easier to coordinate.

let me know if you need an example


December 13, 2009 | 2:18 am

an example would be great! this patch is doing my head in!


December 13, 2009 | 1:47 pm
– Pasted Max Patch, click to expand. –

with count~ you don’t have the option of slowing things down like groove~ but it is very easy to keep things tight. an alternative could be to use count~ to write the audio and then use line~ with play~ to play it back at different speeds.

in the patch i’m using the jongly file’s length as a max sample number for count~. you’ll notice this keeps looping, just like groove~ would in loop mode. the output of this is then used as a sample index for poke~

the example just records the drum loop again, you should be able to see this in the waveform object below


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