How to make a slider move slower than what is driving it?
I have a slider which loops from 0.0 to 1.0 at a constant rate. Basically a 1 measure loop.
I'm looking for a way to use this 1 measure loop slider to drive other elements but to have a way to make those other elements be 2x, 3x, 4x, 8x... slower without changing the speed/duration of the 1 measure loop.
I've attached a patch with a metro driving 1 slider from 0.0 to 1.0, mimicking 1 measure looping.
This slider is driving a second slider. For my test I decided to try and make the second slider go 4x slower than the first slider while being driven by the first slider.
Using the argument "size 4" on the second slider it is going from 0.0 - 0.25 in the time it takes for loop 1 to go from 0.0 to 1.0.
This makes slider 2 go at the desired relative speed but I'm looking for a way for it to keep going all the way to 1.0 while loop 1 cycles 4 times.
I tried playing around with "accum" and "counter" but can't quite figure out a way to get the desired result.
How should I go about making slider 2 go from 0.0 - 1.0 in the time it takes for slider 1 to go from 0.0 to 1.0 four times, all the while being driven by slider 1?
Any tips would be appreciated,
Thanks!
It may be simplier if you reverse the problem : the metro drives the fastest slider. Then you can use pong to compute the slower sliders.
Hello Patrick,
Thank you for your post & patch. The pong object looks very useful to multiply the speed based on the driving slider, very cool.
For this particular problem I'm looking to accomplish the opposite effect. That the "follower" slider move slower than its driving slider.
I went back to messing with the counter object and may have came up with something which works.
Here's the new patch.
I would move to MSP-land and use phasor~ with rate~
i´d divide the input number and then re-wrap it to fit into the slider range.
expr (($f1/4)-int($f1/4))