Noob trying to loop using groove

gtodd's icon

I've gone through the tutorials and now I'm trying to build my own looper as my first project. I figured I would start simple and only try to loop one layer. Eventually I would like sound on sound looping and be able to choose different channel strips (with different effects and eq settings) to direct my audio input into the looper, and all controlled by midi. So here's my attempt at step 1.

1. Record into buffer
2. Once I stop recording play back buffer in continuous loop

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

With this patcher I got it to record into the buffer and once I hit stop groove played the buffer back but it didn't loop. I added a couple loop messages and now it doesn't work anymore. It is still recording audio into a buffer but groove is not playing back anymore.

Thank you for any help,

Todd

MIB's icon

looks like you are missing a way to tell groove~ where to start playback from. you might want to add the "startloop" message so groove~ starts playing the selected loop. you can also send it a number to start playing from a specific location.

hope this helps

gtodd's icon

Thank you! It works perfectly now.

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

Here is the new patch in case it helps anybody trying to do something similar. I also cleaned it up a bit.

Now I'll try to work on a solution to overdub sound into the buffer.

brendan mccloskey's icon

The tutorials are excellent, particularly for task-specific stuff, but the help files are very object-specific (r/alt click on a newly named object), and also provide suggested common usage. To overwrite into a live [buffer~] see the help file for the [poke~] and [count~] MSP objects.
Brendan

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

Thanks for the heads up about poke~ and count~. I read the help and references files on both of them and I thought I understand the concepts but I can't seem to get the functionality to work in my patch.

brendan mccloskey's icon
Max Patch
Copy patch and select New From Clipboard in Max.

here's a quick and easy way to overwrite a buffer in realtime, using [poke~] and [count~]:

gtodd's icon

Thank you very much for your patch and crystal clear documentation included inside it. It really helped solidify my understanding of the patches. It seems that in the selector section only the cycle~ will overwrite the buffer and not the audio in. That must be why it wasn't working for me in my patch since I was just trying to feed poke with external audio to write the buffer.

brendan mccloskey's icon

I only included the [selector~] for a test-tone; [poke~] should write anything into your buffer, including audio-in via [adc~]. You should verify that whatever is going to your soundcard, is enabled under Options/DSP Settings/IO. This is a common rookie mistake; you have to let MSP know what input you are using. Check the helpfile for [adc~]; and send [adc~] direct to [poke~].