Page 1 of 1

How to link two CC using scripting

Posted: 18 Dec 2012 12:06
by techmuz
Hello,

I would like to make an interface with 10 buttons to control scenes on ABleton Live.

I would like to have this interaction : when I press a button to start scene X (so I put button X on "On" mode), others buttons should automatically switch to "off" state and send the current order in MIDI to Live. Is it possible to dit ? I think so... but I can't find the solution looking at the documentation, I'm pretty bad at scirpting/coding :)

Could someone explain me how to do this ?

(and to be sure : is it okay to use CC order for a button that has two state : On and Off, and that should keep the last activated state (i.e in switch mode) ?)

Thanks

Re: How to link two CC using scripting

Posted: 18 Dec 2012 14:41
by whatisvalis
Have a look at the lagging fader tutorial, and the basic scripting examples in the manual. Mastering that stuff can get you a surprisingly long way with Lemur

http://www.tonvibration.de/extra/Lemurt ... fader.html

Re: How to link two CC using scripting

Posted: 20 Dec 2012 14:36
by Macciza
Hi
There are a few different ways of achieving what you are after - Switches in Radio mode would probably work depending on a few things

This sort of thing has been dealt with in many different ways by people - Check out the User Library for some ideas . . .

Find something close to what you want and modify it or ask questions about paricular parts of particular projects
It is a lot eaasier to offer solutions when there is more to go on . . .

MM

Re: How to link two CC using scripting

Posted: 23 Dec 2012 11:35
by techmuz
Hello,

thanks for your reply !

I finally succeed using basic script (as I said I'm bad at scripting but for what I want I'm okay now :) ) .

Let say 3 buttons, Button_1 to _3 (CC) ; when I click on Button_1, I want Button_2 and _3 to be off.
So for each button, I added a script Action() , execution "On expression, x" ; here the script for Button_1 :
Button_2.x = 0;
Button_3.x = 0 ;

that's all !

cool :)

thanks again, bye

Re: How to link two CC using scripting

Posted: 11 Apr 2013 19:44
by beatpete
techmuz wrote:Hello,

thanks for your reply !

I finally succeed using basic script (as I said I'm bad at scripting but for what I want I'm okay now :) ) .

Let say 3 buttons, Button_1 to _3 (CC) ; when I click on Button_1, I want Button_2 and _3 to be off.
So for each button, I added a script Action() , execution "On expression, x" ; here the script for Button_1 :
Button_2.x = 0;
Button_3.x = 0 ;

that's all !

cool :)

thanks again, bye
I'm trying to figure out how to turn switches off with scripts and I am totally baffled. Can you explain EXACTLY what you did?