using "if" with osc(x)

84 views
Skip to first unread message

D.M. Hologram

unread,
May 6, 2014, 2:26:51 PM5/6/14
to ligh...@googlegroups.com
Hi Matthieu!

I have a question regarding a formula using "if" I want to control the master intensity with a fader and a toggle both on a tablet via OSC. I'm thinking it should look like this:

if(osc(2))>0,0,osc(0)

But no dice. Any help here would be much appreciated.

Cheers,

Brian

Mathieu

unread,
May 7, 2014, 4:41:27 PM5/7/14
to
Hi Brian,

Just to be sure I understand, you have two osc values coming from your tablet. One value is a kind of blackout, so when it is 100%, that means the master intensity should be 0%. Another osc value is a slider (0-100%) that is used when the blackout value isn't active. Is that right?

That would be something like:

if(osc(0), 0, osc(1))

where osc(0) is the blackout value and osc(1) is the slider value. Also, make sure the min&max for your osc values are properly configured in Lightjams in order for the final values to be between 0-100%. Many osc apps send values between 0-1.

D.M. Hologram

unread,
May 9, 2014, 9:52:00 AM5/9/14
to ligh...@googlegroups.com
That's correct. I'll try this formula now. Thanks so much!!! I bought my license today so you may be hearing more from me.

D.M. Hologram

unread,
May 9, 2014, 1:13:57 PM5/9/14
to ligh...@googlegroups.com
it works! <3
Reply all
Reply to author
Forward
0 new messages