midi.clock.speed equivalent for OSC VST control?

95 views
Skip to first unread message

Ryan Shea

unread,
Aug 22, 2021, 11:47:51 PM8/22/21
to Lightjams
I'm using the VST to sync with Ableton via OSC. It looks like there's functions for converting a tap tempo or a midi clock to a speed or sawtooth, but not for OSC.

Given a raw BPM value, it doesn't seem there's any easy way to scale the speed of a function.

By extension of that, I'd like to have my master speed fader linked to the BPM.


I know that something like taptempo.speed(onchange(osc(0)) would work, but it takes a second to calibrate. Given that I have the actual BPM straight from OSC, it seems like this should be easy.

Any advice?

Ryan Shea

unread,
Aug 22, 2021, 11:54:07 PM8/22/21
to Lightjams
For reference, what I'm trying to achieve is a pulse that triggers on the 1/8th note.
Message has been deleted

Mathieu

unread,
Aug 23, 2021, 8:15:05 AM8/23/21
to Lightjams
Hi,

With the VST plugin, you have access to the BPM and you also know exactly on which beat you are. Look at this post for the details: https://groups.google.com/g/lightjams/c/11oPC3WDGkc/m/Fu-MEQFUAgAJ

Basically, you can probably use the beatIndex value. 

The formula would look like: onbeat(osc(1)==7)

where 7 is the 8th beat (base 0 index, so 0 is the 1st and 7 is the 8th), osc(1) is the value for the beatIndex. Change it depending on how you've mapped the VST values to OSC.

Ryan Shea

unread,
Aug 23, 2021, 3:20:47 PM8/23/21
to Lightjams
Yes, but how does that get me a synced pulse on the 1/8th note? Doing inter-beat timing seems to be difficult.

Thanks

Ryan Shea

unread,
Aug 23, 2021, 3:30:31 PM8/23/21
to Lightjams
Also, what would the equivalent of midi.clock.sawtooth be?

Mathieu

unread,
Aug 23, 2021, 4:33:43 PM8/23/21
to Lightjams
The equivalent of midi.clock.sawtooth should be the  beatProgress value. It's from 0 to 1, so multiply it by 100 if you prefer. For example, if you've mapped the beatProgress as osc(2), the formula is:

osc(2)*100

For the 1/8th note question, I may not understand correctly. You can look at the numerator and denominator values and see how the beatIndex value changes.

Mathieu

unread,
Aug 24, 2021, 9:04:01 AM8/24/21
to Lightjams
Hi again,

If you want to pulse 2 times per beat, then the formula should look like:

delta(osc(2)*2%100) < 0

where osc(2) is the beatProgress value. 

To pulse 4 times per beat, you would do:

delta(osc(2)*4%100) < 0

Ryan Shea

unread,
Aug 24, 2021, 4:48:49 PM8/24/21
to Lightjams
YES! This is what I wanted. Thank you so much!
Reply all
Reply to author
Forward
0 new messages