how to send a controller message

Discuss Lemur and share techniques.
Post Reply
markscheel
Newbie
Posts: 6
Joined: 08 Jul 2013 08:03

how to send a controller message

Post 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
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: how to send a controller message

Post by Softcore »

Obviously you mean without using the midi mapping, correct? You want the script to take care of it?
markscheel
Newbie
Posts: 6
Joined: 08 Jul 2013 08:03

Re: how to send a controller message

Post 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
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: how to send a controller message

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