Addressing OSC ID's without changing others

32 views
Skip to first unread message

Brooks Talley

unread,
Jan 26, 2016, 11:26:48 AM1/26/16
to Lightjams
I'm trying to understand the best way to use Lightjams + OSC to control the colors/brightness/patterns in a few rooms. I'm struggling with the stateless model and the need (I think) to fill the OSC message with every value up to the ID that I want to control. 

Using Lemur on iPad, it's easy to set up a a color wheel, saturation slider, and brightness slider for each room. Let's say ID's 1-3 are room 1, 4-6 are room 2, etc. The difficulty comes in *only* sending a value for an ID. As far as I can tell, if I want to set ID 7 to 0.5, I send the message "/lj/osc/0 0 0 0 0 0 0 0.5"... which of course sets a bunch of values I don't want to touch. I could build state into my Lemur project, but that breaks if changes are made from other sources.

This is all new to me, so I suspect I'm missing something. Is there a way to directly address a particular OSC ID, or a way to leave a value untouched? I'm thinking something like either "/lj/osc/0:7 0.5" or "/lj/osc/0 - - - - - - 0.5". Or am I taking entirely the wrong approach here? 

Thanks!

Mathieu

unread,
Jan 26, 2016, 11:36:00 AM1/26/16
to ligh...@googlegroups.com
Hi Brooks,

You can send only one value per message if you want. No need to send extra values. So each slider in Lemur (I guess) can be configured with its own address. Then you map each address to a different channel in Lightjams. Click the mappings button in the OSC input panel. 

Alternatively, with default addressing mapping, you can send a value directly to the desired channel by using /lj/osc/CHANNEL-ID. So for channel 7, /lj/osc/7

Brooks Talley

unread,
Jan 26, 2016, 11:39:55 AM1/26/16
to Lightjams
Thanks! I was under the (wrong) impression that I could only use 8 channels. Can you give an example of a channel message and how I would receive it in Lightjams?

Mathieu

unread,
Jan 26, 2016, 11:45:44 AM1/26/16
to ligh...@googlegroups.com
I'm not sure to understand... OSC is a standard protocol...

A message has an address (like /lj/osc/10) and values. 

/lj/osc/7 1.0 is an example. Lightjams will put the 100% (automatically scale 1.0 to 100) value in the channel 7. Then you use it like any kind of inputs in Lightjams. In a formula, you use the osc(channel) function.


Mathieu

unread,
Jan 26, 2016, 11:58:47 AM1/26/16
to Lightjams
Just to clarify, when using Lemur to send OSC to Lightjams, you should use the Lightjams OSC mapping feature. 

So in Lightjams, go in the View/Configuration and the OSC tab. Then press the mappings button in the input section. Go in the learn tab, and you'll see the OSC messages coming from Lemur. You can then map the messages to channels.
Reply all
Reply to author
Forward
0 new messages