osc.send query

40 views
Skip to first unread message

Phil

unread,
Apr 26, 2019, 5:22:46 AM4/26/19
to Lightjams
Hi, 

i'm probably doing something silly here.
Scenario, i want to capture an osc address to reset a user interface once lightjams has finished loading after a reboot.

i've used if(grid.onactivated, osc.send(8, 100),0) as the formula on the delay fader.
This works when i activate the grid, but only once. every other subsequent activation/deactivation doesn't appear to send anything. If i change the value or any other part of the formula it will then send the osc again, but only once.

what am i doing wrong?

Thanks

Mathieu

unread,
Apr 26, 2019, 8:19:09 AM4/26/19
to ligh...@googlegroups.com
Hi,

The osc.send function only sends when the value changes. This is to avoid sending endlessly the same value. What you can do is:

osc.send(8, grid.onactivated)

Each time the grid has just been activated, this will send two OSC messages, one with 100 followed by another with 0.
Reply all
Reply to author
Forward
0 new messages