Oscillator speed confusion!
  • JimTurner
    member
    Posts: 12
    Joined: Tue Jan 08, 2019 11:49 am

    Oscillator speed confusion!

    by JimTurner » Thu Feb 15, 2024 12:18 pm

    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?
  • mad-matt
    garageCube team
    Posts: 1478
    Joined: Mon Sep 09, 2013 5:50 pm

    Re: Oscillator speed confusion!

    by mad-matt » Mon Feb 19, 2024 1:19 pm

    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.

Who is online

Users browsing this forum: No registered users and 6 guests