Page 1 of 1

Oscillator speed confusion!

Posted: Thu Feb 15, 2024 12:18 pm
by JimTurner
Hi I'm struggling to understand the variables in oscillator speed. I have the option to choose relative or linked to bpm as an option but am unsure exactly what that means.
Then a value slider which I can move between -8 and 8 I don't know what this means. I need a sine wave with a 6second period how do I do that?

Re: Oscillator speed confusion!

Posted: Mon Feb 19, 2024 1:19 pm
by mad-matt
You have to set "Timing" to "Relative", disable "Link to Global BPM", then the signal frequency (oscillations per second) will be power of two of your speed, so speed = 1 => period 1 second, speed = 2 => frequency = 4 (period 1/4 second)...
So for a period of 6 seconds, you need speed = sqrt(1/6) = 0,408249. But I just notice there's a missing *2*PI in the code, so here you need a speed of 2*PI/6 = 1,023326707946488
We'll add a timing mode to specify the "Period", it will make things much easier when you need precision.