Page 1 of 1

How do I get Lemur to send OSC message integer values?

Posted: 05 Apr 2017 17:40
by simspace
Hi All,

I recently purchased Lemur. So far very cool! It's working great with Vezer.

I created a Lemur interface to control Vezer from my iPhone.

I am trying to figure out how to get a custom button to send an OSC message with an integer values to Vezer to select the very first composition.

This is the OSC message Vezer expects for selecting a specific composition (from the Vezer docs) ...
/vezer/triggercompatindex triggers the Composition at the given int type index (starts from 1).
I tested the following in OSC Test and the command works:

Code: Select all

/vezer/triggercompatindex , i 1
How do I create a custom "HOME" button (see image below) that sends that message? I cannot get that command to work from my Lemur interface.

Thanks
-Chris

MY LEMUR IPHONE GUI FOR VEZER
Image

VEZER COMPOSITION LIST EXAMPLE
Image

Re: How do I get Lemur to send OSC message integer values?

Posted: 06 Apr 2017 04:18
by simspace
Thanks to this JazzMutant tutorial, I learned how to trigger my script.

At first, I did not understand the "on expression" event. Once I understood that a script can be triggered when a variable or expression value changes, I knew what to do.

I did not use a custom OSC address for my button. Instead, I set the scale on, and left the values at 0 and 1. When the button is clicked, the value of "x" changes to either 0 or 1.

And that's what I am using to trigger my script (see screenshots below) ...

Code: Select all

oscout(0, '/vezer/triggercompatindex', 1);
If there is a better way to do this, I'd love to hear about it.

-Chris

Image

Image

Re: How do I get Lemur to send OSC message integer values?

Posted: 14 Apr 2017 05:42
by nick_liine
Great to hear you figured it out and thanks for posting your learning path.

In the meantime I created a small example, hope this helps.