Footswitch M4L Patch for Looping

Learn about building and using Max for Live devices.
Post Reply
K-Swiss
Posts: 63
Joined: Sun Jun 14, 2009 10:47 pm

Footswitch M4L Patch for Looping

Post by K-Swiss » Tue Aug 23, 2011 4:34 pm

I bought a sustain pedal and am planning to develop a M4L patch that does this:
1) When a clip slot is selected, hitting the sustain pedal starts recording in that clip slot.
2) Hit the pedal another time. It ends the recording, enables it as a loop, continues playing the clip.
3) Hit the pedal another time. It starts recording in the clip slot underneath.

Then back to step 2...until you've finishing fleshing out all the riffs/clips you want.
Rinse and repeat.

I was doing a bit of research and noticed Synthfan came up with "Stop Cliprecord," which is close to what I'm trying to do. Does anyone have resource materials that would help me achieve this?

Thanks,
James

chapelier fou
Posts: 6025
Joined: Mon May 15, 2006 12:15 pm

Re: Footswitch M4L Patch for Looping

Post by chapelier fou » Tue Aug 23, 2011 8:17 pm

i'd say learn properly the LiveObjectModel, this doesn't seem too much complicated.

The thing that comes to my mind, is : how would you imagine that your computer will know that "you've finishing fleshing out all the riffs/clips you want" ?
Unless i am wrong it needs another piece of human action, and consequently, hardware. Wait, as i write this, i think a "double-click" would be a good solution !
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

K-Swiss
Posts: 63
Joined: Sun Jun 14, 2009 10:47 pm

Re: Footswitch M4L Patch for Looping

Post by K-Swiss » Tue Aug 30, 2011 3:53 pm

Haha thanks Synthfan. Make any progress this weekend?

K-Swiss
Posts: 63
Joined: Sun Jun 14, 2009 10:47 pm

Re: Footswitch M4L Patch for Looping

Post by K-Swiss » Mon Sep 19, 2011 5:37 am

Peter - I understand, no problem. I really am grateful at any pace, as it would probably take me much longer to dive in (which I plan to do when I find some free time as well!)

K-Swiss
Posts: 63
Joined: Sun Jun 14, 2009 10:47 pm

Re: Footswitch M4L Patch for Looping

Post by K-Swiss » Mon Sep 26, 2011 5:29 am

Hi Peter

Thanks so much for your help. I'll take it for a test drive and intend to give some feedback.

I apologize for my ignorance but can you briefly me walk me through how I use this code to get the patch running?

Alternatively, is there a downloadable file I can run?

K-Swiss
Posts: 63
Joined: Sun Jun 14, 2009 10:47 pm

Re: Footswitch M4L Patch for Looping

Post by K-Swiss » Tue Sep 27, 2011 9:54 pm

Hi Peter

Thanks for the download link!

I was able to load it into my session and I've successfully mapped my sustain pedal to control the button. (I also have "Select on Launch" activated.)

However, I've been unable to get the button to perform any controls on audio tracks, midi tracks, or the master track. (Tried each). Strange, because I can run your Stop clip record patch just fine!

Here's a screenshot:
Image

K-Swiss
Posts: 63
Joined: Sun Jun 14, 2009 10:47 pm

Re: Footswitch M4L Patch for Looping

Post by K-Swiss » Wed Sep 28, 2011 4:49 pm

Ok - I believe that's what I was doing but I'll try again today after work!

Thanks,
James

K-Swiss
Posts: 63
Joined: Sun Jun 14, 2009 10:47 pm

Re: Footswitch M4L Patch for Looping

Post by K-Swiss » Thu Sep 29, 2011 6:08 am

Yes - so I definitely had the clip selected when I midi triggered the button.

K-Swiss
Posts: 63
Joined: Sun Jun 14, 2009 10:47 pm

Re: Footswitch M4L Patch for Looping

Post by K-Swiss » Fri Sep 30, 2011 2:14 pm

Sure, though I've tried both..

Where exactly are you hosting the Clip Control device?

To confirm the procedure:
1 Drag Clip Control to an audio/midi track with instrument
2 Map sustain pedal to control the button (set on absolute)
3 Set to Record mode
4 Arm the track and highlight an empty clip
5 Hit the sustain pedal

Does this sound right for Record mode?

Maybe someone else on the forum can test as well, because I was able to get your Stop Clip Record device working, though I can't get Toggle mode up and running in this one.. Which is supposed to be the same as the previous device?

I appreciate all your efforts.

Post Reply