General

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

Started by simspace on .

Sign in or create an account to join the conversation.

3 posts

Topic starter
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:
/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
[img]https://image.ibb.co/mdTMDv/Clipboard_image_2017_04_05_12_42_59.png[/img]

VEZER COMPOSITION LIST EXAMPLE
[img]http://support.vezerapp.com/sc_assets/12712/composition_list_and_master_controls_normal.jpg[/img]
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) ...
oscout(0, '/vezer/triggercompatindex', 1);
If there is a better way to do this, I'd love to hear about it.

-Chris

[img]https://image.ibb.co/idj1fa/Clipboard_image_2017_04_05_23_11_38.png[/img]

[img]https://image.ibb.co/mx2Mfa/Clipboard_image_2017_04_05_23_16_15.png[/img]