How to switch tabs in Live via CC?

Discuss Lemur and share techniques.
Post Reply
xh9o
Newbie
Posts:4
Joined:20 Jan 2016 13:55
How to switch tabs in Live via CC?

Post by xh9o » 20 Jan 2016 14:25

This 100% newbie, but I can't figure out how to use a lemur switch for tabs in Ableton Live. I've set them to radio mode, but does not output the one selected position as cc value. Can I solve this with editing the value field? Or does it require scripting?

xh9o
Newbie
Posts:4
Joined:20 Jan 2016 13:55

Re: How to switch tabs in Live via CC?

Post by xh9o » 20 Jan 2016 23:28

No body? In TouchOSC there is the option of scaling particular switch values (like sending a value "33" for "cc 5" when the second switch-value of four is selected). Is something like this possible in Lemur?

MrCorba
Regular
Posts:143
Joined:02 Sep 2013 20:17
Location:Netherlands

Re: How to switch tabs in Live via CC?

Post by MrCorba » 21 Jan 2016 10:27

That's very easy to do with scripting. Create an On Expression script set to x, then use the ctlout(target,ctrl,val,chan); to send out the midi. Then use the switch to calculate the value.

For example:

Code: Select all

decl baseValue = 127 / sizeof(Switches.x); //The value for each switch
decl value = baseValue * (firstof(Switches.x) + 1); //The value of the current pressed switch
ctlout(0,5,value,0); //The midi sent out to Target 0, CC number 5, and channel 0
I can't test it at the moment but this should work.

Cheers
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba

xh9o
Newbie
Posts:4
Joined:20 Jan 2016 13:55

Re: How to switch tabs in Live via CC?

Post by xh9o » 23 Jan 2016 18:27

Thanks!

Post Reply