Recording to buffer, rewrite problem!

electronicmess's icon

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:

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

Thanks

Mike S's icon

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

let me know if you need an example

electronicmess's icon

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

Mike S's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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