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

Discuss Lemur and share techniques.
Post Reply
simspace
Newbie
Posts: 6
Joined: 05 Apr 2017 15:48
Location: Franklin, TN
Contact:

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

Post 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
simspace
Newbie
Posts: 6
Joined: 05 Apr 2017 15:48
Location: Franklin, TN
Contact:

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

Post 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
nick_liine
Liine Staff
Posts: 285
Joined: 01 Oct 2010 11:06

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

Post 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.
Attachments
vezer_int_example.jzml
(5.39 KiB) Downloaded 143 times
Post Reply