Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Automatic sending of all controllers (buttons, faders,..) from Lemur at startup

KNK Sep 20, 2018 03:52PM CEST

I work with Kyma (sound design environment with external hardware). If you send Kyma the OSC message /osc/respond_to,port, then Kyma sends all controller values received before via the corresponding port back to Lemur. Such a bidirectional way of controller value matching works very well. You only have to send every single controller in Lemur to Kyma every time you start the app, i.e. touch every fader and press every toggle, choose every menu etc.
Now to my question: Is there a line(s) of code that I can enter so that Lemur automatically sends all controllers with initial values on startup and if so, what could it look like?

Thanks
KNK

Up 0 rated Down
MiluX Oct 03, 2018 02:35PM CEST
Hey KNK,
I'm not from Liine, but here's my take on your problem. I'm not so familiar with OSC yet, but it should do what you want with a little customization. I hope it helps?

Create a new script at the top of your project, and execute it "On Load".
The code :

decl objectsArray = {'Fader', 'Fader2', 'Fader3'};
decl messagesArray = {'messageToSendFromFader1', 'messageToSendFromFader2','messageToSendFromFader2'};
decl osc_target = 0;
decl osc_address = '1.1.1.1';
decl i;
for (i=0;i<sizeof(objectsArray);i++)
{
decl obj = findobject(objectsArray[i]);
oscout(osc_target,osc_address,messagesArray[i]);
}
Up 0 rated Down
MiluX Oct 03, 2018 02:38PM CEST
Mhh sorry... Of course in the OSC message, you can include the current value of the obj variable if you need it. Otherwise you can maybe do only with the messagesArray...

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
support@liine.net
http://assets1.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete