how to send two control change with one button?

Discuss problems and solutions.
Post Reply
raysperanza
Newbie
Posts: 10
Joined: 04 Dec 2013 20:34

how to send two control change with one button?

Post by raysperanza »

HI guys. Anyone know how to send two control change with one button..???

thanks
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: how to send two control change with one button?

Post by Softcore »

Three ways....

1st way.custom expression
desktop editor -> select your button -> click on "x=?" button. Name it, for example k. In the one line script that appears type x so that x=k. Map k by selecting it as you would do with x.
(this way the two messages will always be both on or off)
If you want the two messages to be diverted then make k=1-x

2nd way. custom midi message
desktop editor -> select your button -> click on the "create custom midi" button (it shows a midi plug) -> name it, for example k. In the mapping properties type "x" in the "trigger field - type 1-x if you want the two messages inverted

3rd way. scripting
desktop editor -> select your button -> click on "script" button -> set "on expression", "x", "any"
In the script editor type
ctlout(trgt, ctl, val, chan)

where trgt = desired Lemur traget
ctl = desired CC number
val = desired value - floor(x*127) to have the value follow x, floor((1-x)*127) for inverted
chan = the desired midi channel
raysperanza
Newbie
Posts: 10
Joined: 04 Dec 2013 20:34

Re: how to send two control change with one button?

Post by raysperanza »

thank you very much! :D
Post Reply