Newbie question: how to convert this time based script
Posted: 07 May 2017 17:13
Hi folks,
I am creating a quad LFO with a multiball. It is working great using the time variable and the example from the manual. For each multiball I am using something like this:
MultiBall.x[0] = sin(time * 1) *0.5 + 0.5;
i have that script being executed "on frame".
I would like to replace the "time" variable so that the LFO is being clocked to an incoming MIDI clock signal....but I don't know how to do that. Can anyone show me how to change the equation to work? I'm using an Expert Sleepers FH-1 to send a cv pulse into that module and that is sending a clock pulse into the lemur.
I tried to set up a monitor with midi_clocks[0] but nothing but a 0 is being displayed....
I am creating a quad LFO with a multiball. It is working great using the time variable and the example from the manual. For each multiball I am using something like this:
MultiBall.x[0] = sin(time * 1) *0.5 + 0.5;
i have that script being executed "on frame".
I would like to replace the "time" variable so that the LFO is being clocked to an incoming MIDI clock signal....but I don't know how to do that. Can anyone show me how to change the equation to work? I'm using an Expert Sleepers FH-1 to send a cv pulse into that module and that is sending a clock pulse into the lemur.
I tried to set up a monitor with midi_clocks[0] but nothing but a 0 is being displayed....