How to link two CC using scripting

Discuss Lemur and share techniques.
Post Reply
techmuz
Newbie
Posts: 2
Joined: 18 Dec 2012 12:00

How to link two CC using scripting

Post 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
whatisvalis
Regular
Posts: 153
Joined: 31 Dec 2011 17:12

Re: How to link two CC using scripting

Post 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
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: How to link two CC using scripting

Post 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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
techmuz
Newbie
Posts: 2
Joined: 18 Dec 2012 12:00

Re: How to link two CC using scripting

Post 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
beatpete
Regular
Posts: 63
Joined: 04 Jan 2012 01:16

Re: How to link two CC using scripting

Post 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?
Post Reply