1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Oscillator Phase Invert

Discussion in 'Building With Reaktor' started by Squid79, Oct 29, 2014.

  1. Squid79

    Squid79 NI Product Owner

    Messages:
    29
    This should be fairly simple. I have a switch toggling between inverse phase values feeding the phase input of a sync oscillator. I'm doing this so I can get PWM by inverting the phase of one saw wave and mixing it with another saw wave oscillator with the same settings and then fine tuning the pitch of one oscillator to get the desired effect.

    The problem is I have to toggle the audio engine on and off to get both oscillators accumulating phase values at precisely the same time. Also, I've noticed that when I fine tune the pitch of one saw wave and then set the bipolar "cents" knob back to a value of zero, I can still hear the two oscillators ever so slightly flanging against one other, which means they must still be out of phase, because if they were IN phase they would both cancel each other out and I would hear nothing, which (in this case) is what I want to hear when both oscillators have the same settings.

    My guess is that I need to open a System Info module and do something with the sample rate. Any help is greatly appreciated :)
     
  2. Big Gnome

    Big Gnome NI Product Owner

    Messages:
    574
    This sounds like it should be somewhat straightforward, but I'm having difficulty picturing how your putting this together. Maybe upload your ensemble?
     
  3. Squid79

    Squid79 NI Product Owner

    Messages:
    29
    Here's the ensemble. Nevermind the sine oscillators feeding the sync inputs, they are basically just there as a means to create a sine/saw type of symmetry effect. The "Sine<>Saw" knobs turned all the way to the right will create a slightly rounded saw wave. You should hear and see a very faint triangle waveform in the Easy Scope window.

    Now just turn Oscillator #1's "Cents" knob to the left or right and you will see the symmetry modulation take effect. But then set it back to zero. Still hear them? Yeah, that's the problem. They need to be accumulating phase values at the same time, which is why you have to toggle the audio engine off and back on again, making sure that both oscillators have exactly the same settings, and then you can fine tune it again.

    So, System Info module? Multiply the phase value by the sample rate clock somehow?
     

    Attached Files: