[m4L] automatic instrument change with the right clips

Share your favorite Ableton Live tips, tricks, and techniques.
julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

[m4L] automatic instrument change with the right clips

Post by julienb » Sun Dec 13, 2009 8:56 am

hello,
a little thing I built for my own need.
it is easy and I guess a lot of experts already use it since the 23th november.
but for the others, I give it :)


I'm using only one set per live perfomance.
for me, a song is 8 tracks x 6 scenes.
there is an instrument rack in each track, and as many chain as instruments needed (generally: one instrument per song in each track)
so I need to change my chain selector each time I trigger a clip in a new song.

before max for live, I created an envelope for each clip (copy/paste was my friend) in order to make this.
max for live drives me into a smarter thing.

I observe the playing_slot_index property in each track.
when it changes, I trigger a change in the chain selectort value trough live API.
easy. working. just do what I needed!
and ... it removes another thing that was in the liveset, by putting it in the patch.
it makes the liveset more independant!


Image


the patch is for the track number 2. you can alter it for your own use :)

Code: Select all

----------begin_max5_patcher----------
613.3ocwV10jZCBEF953L9efIWacCjDT265uiN63fIrJsIPF.sZ2o82d4Cil
8C2Dcv1qHmCmPd4cdNPdY7nn3Uh8TUL3Qv2.QQuXxD4xYyD0lHJtlrunhnbE
F+bkfusNdxw4dVv0bRM0M2WkLR0ooLkw3UTs68fsYYktREq99Wx6VpXqtsVT
2EWw9kawgISSZy6qUeng50tUTDc7DP7JBecL3o1BaH5hML95kRZg1WKLYlYg
.vzT6P1BWv7oIfmbuyuGOxNZFlLXKgS+oY6bZyno6ceq3G.3q1mPefOgufOA
uZehw0CycbqBHEdGcGMXEnJHbDDFLPxwOFNpGWJCaMFjCdRSBfIUSUJxZ56c
oFongJ0G.MUjCVUnpD5kLdIcePXKHJXvUejk0lxO17k6Fv2EvphsiNUrRQk6
nxvXRoACvF.b4aAW37K7877ImQYTvFf8okJpFnkjhen.nvzWlcAaK81rsdst
EYV2xiXnz6syIo0BM8OggvtzcgI8YUexg34N6.O6+CBAJo6XETEHAzPjFeQS
kJvhvPV3+wjELOsy8hHzkaK8KiwX3u6Oqbqqch23zJwVYQqdZOuwXamDTIUo
YbhlI3cpB+5h1vJKo7WwL0rxFg4N+iBAZNvM2H6j498x4nOiLFtpsBB1mpsj
d2p5W1HCAaEZl+uQvYmhBiryFjrgWsammaEJ5Xu3offH57g.Hv7akPZo8yQA
Q03gn5aVzGaJ6DEF9.NH9H8ZwZH1IzLey34fvI59ADzMB0dQibGF18Y+MNvE
1ZrOGl8BZP6kzqdu3j47Ycnl4y9vSzGOxL7WoAaVWA
-----------end_max5_patcher-----------
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

nbinder
Posts: 867
Joined: Tue Apr 29, 2008 1:47 pm

Re: [m4L] automatic instrument change with the right clips

Post by nbinder » Sun Dec 13, 2009 3:21 pm

Nice one! Small and useful....

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by julienb » Sun Jan 03, 2010 9:49 pm

I have a little problem with this patch.

I trigger a clip.
It is playing.
as soon he begins to play, the chain selector goes on the correct value.
right.
I trigger another clip, the chain selector goes on the correct value ... but a little bit too late and the previous playing clip plays his first note :-(

could someone help me...?
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by julienb » Mon Jan 04, 2010 5:21 pm

up.. :cry:
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

sgreene
Posts: 74
Joined: Sun Oct 07, 2007 5:59 pm
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by sgreene » Mon Jan 04, 2010 5:49 pm

Hi julien,

Just a guess, but it seems things are executing out of order, right?

Try putting a 'deferlow' object near the beginning of your patch.

I was having some ordering issues until I did this. Live API is asynchronous and putting deferlow seems to make it wait for each action to complete.

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by julienb » Mon Jan 04, 2010 6:20 pm

sgreene wrote:Hi julien,

Just a guess, but it seems things are executing out of order, right?

Try putting a 'deferlow' object near the beginning of your patch.

I was having some ordering issues until I did this. Live API is asynchronous and putting deferlow seems to make it wait for each action to complete.
ok I understand the concept.
where can I put it in the subpatch?
I mean, which data flow I need to defer here? the chain selector need to be made fast and before the first note of the previous playing clip is triggered...
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

dc43
Posts: 25
Joined: Fri Aug 12, 2005 1:33 am
Location: Subotica, Serbia
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by dc43 » Tue Jan 05, 2010 1:45 pm

The whole concept is a great idea! I used the old technique before, and that's essentially what made my live performance possible. Envelopes for chain selectors. I saw it for the first time in the background on the screen, in a live set from Robert Henke while he was making a presentation of the Monodeck II and Ableton Live. I was very happy to get that concept there, from him, from simply looking at the screen, noticing that near the chain selector of an instrument rack, there was this little red dot which was displaced to the right of the current position of the chain selector. I think I even had a photo to analyze later. :)

I don't know how to solve the problem you described, but I too would like to find a way to make that concept work.

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by julienb » Tue Jan 05, 2010 2:08 pm

dc43 wrote:The whole concept is a great idea! I used the old technique before, and that's essentially what made my live performance possible. Envelopes for chain selectors. I saw it for the first time in the background on the screen, in a live set from Robert Henke while he was making a presentation of the Monodeck II and Ableton Live. I was very happy to get that concept there, from him, from simply looking at the screen, noticing that near the chain selector of an instrument rack, there was this little red dot which was displaced to the right of the current position of the chain selector. I think I even had a photo to analyze later. :)

I don't know how to solve the problem you described, but I too would like to find a way to make that concept work.
sgreene suggested a tip I don't know how to test.. with deferlow
but on which dataflow should I use it?
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

dc43
Posts: 25
Joined: Fri Aug 12, 2005 1:33 am
Location: Subotica, Serbia
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by dc43 » Tue Jan 05, 2010 2:55 pm

Perhaps you could use it on the MIDI chain (from input to output) - delay the MIDI notes so they don't get to the instrument until the right chain is selected?
Keep in mind that I have no knowledge about max or max for live. I installed Max for Live on Sunday!

sgreene
Posts: 74
Joined: Sun Oct 07, 2007 5:59 pm
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by sgreene » Tue Jan 05, 2010 5:01 pm

I'm not exactly where to put it - I haven't looked at your patch yet.

I was working on my own solution for a similar situation. Being able to change many chains at once with a program change - between songs and inside songs. I made a max patch that takes program changes and generates multiple cc messages - one for each track with a chain selector (cc 100 1, 101 1, 102 1 would make all instruments go to chain=1).

The patch number from the keyboard is added on to the cc number and then the cc is mapped to the chain selector. I have some toggles to I can deactivate switching for tracks I don't want to switch. My scenario is more of a live looping setup though, where I change instruments as needed...although using a clip would be nice for changing in between songs.

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by julienb » Wed Jan 06, 2010 5:57 pm

sgreene wrote:I'm not exactly where to put it - I haven't looked at your patch yet.

I was working on my own solution for a similar situation. Being able to change many chains at once with a program change - between songs and inside songs. I made a max patch that takes program changes and generates multiple cc messages - one for each track with a chain selector (cc 100 1, 101 1, 102 1 would make all instruments go to chain=1).

The patch number from the keyboard is added on to the cc number and then the cc is mapped to the chain selector. I have some toggles to I can deactivate switching for tracks I don't want to switch. My scenario is more of a live looping setup though, where I change instruments as needed...although using a clip would be nice for changing in between songs.
ok sgreene :)
make chain selector changes is easy, indeed.
before max for live, I used clip envelope: clicking on a clip changed the chain selector, selecting the instrument matching the clip.
the only thing I'd need would be to do the same, but without putting anything in clips. (imagine you use a clip in another set, you'd have to reset the envelope etc)


I mean: this concept doesn't matter with a particular live perfo, it is more a thing that has to be stored in preset/patch/interface.
Putting it in the m4L patch would just be great!
In my patch, there is all the configuration of the set's logic to make support easier: I change the logic, I just have to update the m4L instrument that contains the logic et voilà

btw, my patch is almost ok.
I have to work on it in order to avoid this problem!
I have some ideas ... just right now :)
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

LOFA
Posts: 3365
Joined: Mon Jan 10, 2005 7:10 pm

Re: [m4L] automatic instrument change with the right clips

Post by LOFA » Fri Jun 04, 2010 7:21 pm

Bump. Beautiful. Way to demonstrate the goods. Way to share the love.

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by julienb » Fri Jun 04, 2010 7:45 pm

LOFA wrote:Bump. Beautiful. Way to demonstrate the goods. Way to share the love.
:)
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

Plattfeste
Posts: 46
Joined: Sat Jun 19, 2010 1:50 pm

Re: [m4L] automatic instrument change with the right clips

Post by Plattfeste » Thu Aug 26, 2010 11:53 am

Not quite the same thing, but almost:

To automatically switch sounds between songs, I use clips with the chain selector automated to the desired value. So far so good.
But as soon as I record a new clip, the chain selector jumps back to "0". Any idea how to keep the selection intact while recording?

Thanks a lot!

Edit: I don't have M4L, unfortunately.

julienb
Posts: 1843
Joined: Sat Oct 29, 2005 1:15 pm
Location: France
Contact:

Re: [m4L] automatic instrument change with the right clips

Post by julienb » Thu Aug 26, 2010 12:17 pm

I didn't notice that.
you mean record things in the clip that contains the chain selector envelope parameter?
Julien Bayle
Art + Teaching/Consulting

Ableton Certified Trainer
Max Certified Trainer


Structure Void / Ableton Certified Training Center

Post Reply