Page 1 of 1
how to send a controller message
Posted: 10 Jul 2013 19:01
by markscheel
hello
i would like to know the scripting for sendind a midi controller message.
i cant find an example in the docs.
maybe someone can help me out
cheers
mark
Re: how to send a controller message
Posted: 10 Jul 2013 19:09
by Softcore
Obviously you mean without using the midi mapping, correct? You want the script to take care of it?
Re: how to send a controller message
Posted: 10 Jul 2013 19:36
by markscheel
i found out that i need to send
if(x==0) ctlout(0,42,63,1) to make it work
unfortunately the controller i want to controll is not exactly centered.
if i send a value of 64 it is going a little bit over the center position.
i guess this is not due to the lemur but the rackextension in reason 7 is to blame for that behavior.
any ideas greatly appreciated
cheers mark
Re: how to send a controller message
Posted: 10 Jul 2013 19:40
by Softcore
There are a number of things you can do to locate the exact position (MIDI 0 - 127 range value) of the controlled element.
The easiest way would be to mock up a fader or knob and use the native midi mapping on it so that you can get feedback out of it....Lets say you use a fader named "Fader". Map it to the desired control and move the control so that the fader in Lemur also moves - then move it to the desired setting (the one you wish to send).
Then insert a monitor object in the project and set it to show the value:
Fader.x*127
The result is your desired number (instead of 64)