Not getting onBeat to work with OSC

31 views
Skip to first unread message

Øyvind Vevang

unread,
Oct 17, 2019, 5:10:32 AM10/17/19
to Lightjams
Hi,

I have a Reaper tracking sending OSC values (via the Lightjams VST plugin - great stuff!). It works perfectly for just handling values on a source directly. But I would like to use it to bump the X of a sequencer grid I have as well, and I can't get it to work there...

I have tried xtopercent(counter(0, 1, onbeat(osc(5))) - which I would expect to toggle between 0 and 1 on every "beat" of OSC values. The OSC envelope is simply 0% for a long time, then a spike of 100%, then back to 0%. I have tried various lengths of the "spike" as well, to no avail.

Any hints here? The OSC mapping is working, and I get the data directly when using the OSC input selector - although the value here is in percent, yet my OSC mapping is from 0 to 1. (I have tried to map it with 0 to 100 as well.) Could there be any problems with my OSC mapping maybe?

I have also tried changing the onbeat to a full trigger(...) and various other ways of detecting the "spike", but the only thing I have actually got to work so far is to keep the VST track to 100% for the duration of the time I want the X to be "1", and back down to 0 when it should be at "0". While this works I would really prefer to be able to toggle it, and it seems like I'm just doing some simple mistake here? I use the onbeat with MIDI and my midi controller all the time, which works flawlessly...

BR,
Øyvind 

Mathieu

unread,
Oct 17, 2019, 8:45:47 AM10/17/19
to Lightjams
Hi,

What the monitor (bottom-right) looks like for the osc(5) alone? If you clearly see the spikes for the beats, then the formula looks alright. You can attach your project file if you need more help.

Mathieu

unread,
Oct 17, 2019, 9:34:08 AM10/17/19
to ligh...@googlegroups.com
In the latest beta v561, there's a new oscRaw function that doesn't scale the OSC value (https://www.lightjams.com/history.html). Replace osc(5) by oscRaw(5) and then try something like:

xtopercent(counter(0, 1, onbeat(oscRaw(5)>0)))

You can try first oscRaw(5)>0 and look at it on the monitor to confirm the values are what you're expecting.

Øyvind Vevang

unread,
Oct 18, 2019, 4:50:24 AM10/18/19
to Lightjams
Hi,

yes, the spikes are clearly visible in the monitor. Strange stuff. I have two gigs with Lightjams stuff included this weekend, so I won't install any beta version or anything now, but I'll experiment more next week and see if I get it working. Thanks for your prompt replies and superb service as always though! :-)

BR,
Øyvind


On Thursday, October 17, 2019 at 2:45:47 PM UTC+2, Mathieu wrote:
Hi,

What the monitor (bottom-right) looks like for the osc(5) alone? If you clearly see the spikes for the beats, then the formula looks alright. You can attach your project file if you need more help.
Reply all
Reply to author
Forward
0 new messages