## Sine OSC with phase shift option or cos osc

Scope and XITE Development

Original topic on PlanetZ: https://forums.scopeusers.com/viewtopic.php?t=34590

#### Sine OSC with phase shift option or cos osc

Posted: Mon Oct 03, 2016 2:39 am
by DragonSF
Do we have an osc, where I can either select sin or cos or do an arbitrarily phase shift? I need this for my resynth project.

#### Re: Sine OSC with pahse shift option

Posted: Mon Oct 03, 2016 5:00 am
by faxinadu
no :/
only place in scope with that is via flexor oscs in modular at the moment. but hey, build it mate! not just a sine, all shapes with phase input would rock in sdk

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 3:44 pm
by DragonSF
As soon as the dongle arrives consider it done!

#### Re: Sine OSC with pahse shift option

Posted: Mon Oct 03, 2016 3:46 pm
by garyb
you need a dongle for that?

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 3:50 pm
by DragonSF
Yes, I have to create an osc in dsp. Not possible else (I think). Please correct me, if I'm wrong.
Reason: I need 32 of those, do this on the PC will not work in real time.

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 3:52 pm
by garyb
there are a bunch of oscs in modular.

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 3:54 pm
by DragonSF
Not any one with phase shift option (AFAIK). I need one either sin or cos waveform (dynamically changeable).

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 3:56 pm
by garyb
why not take an existing design and add the phase shift?
i'm pretty sure that what you want can be realized without any special code.

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 4:03 pm
by DragonSF
If there is a phase shifter, which is voltage controlled (i.e. controlled by the frequency of the osc), that would be fine. I haven't found one.
Though I found one Modular osc, which can produce either sin or cos. I have to dig deeper into that (i.e. if it doesn't consume too much DSP).

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 4:46 pm
by garyb
control is control, isn't it?
i think it's doable, but of course, i'm not a developer...

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 5:07 pm
by DragonSF
yes, it's definitely doable, provided the phase-shifter as such is available (not to be confused with a phaser). Even a variable delay or allpass filter can be used. But all these are atomic functions.

#### Re: Sine OSC with phase shift option

Posted: Mon Oct 03, 2016 5:14 pm
by garyb
sure, but they exist afaik.

#### Re: Sine OSC with phase shift option or cos osc

Posted: Tue Oct 04, 2016 4:11 am
by DragonSF
I found out, I can use the complex sine osc with a 2:1 switch.

#### Re: Sine OSC with phase shift option or cos osc

Posted: Tue Oct 04, 2016 10:26 am
by garyb
cool!

#### Re: Sine OSC with phase shift option or cos osc

Posted: Tue Oct 04, 2016 8:31 pm
by faxinadu
can you explain that? what do you mean use it with a 2:1 switch?

#### Re: Sine OSC with phase shift option or cos osc

Posted: Wed Oct 05, 2016 3:24 pm
by DragonSF

> faxinadu wrote:can you explain that? what do you mean use it with a 2:1 switch?

For resynthesis you need either sin or cos signal. The atom has 2 outs (sin and cos), so you need a 2:1 (sin or cos-> next stage). This can be switched dynamically (async).Ecample:

  PArt OSC.png (28.11 KiB) Viewed 7664 times

#### Re: Sine OSC with phase shift option or cos osc

Posted: Wed Oct 05, 2016 8:45 pm
by faxinadu
very nice!!!!

#### Re: Sine OSC with phase shift option or cos osc

Posted: Wed Oct 05, 2016 9:54 pm
by DragonSF
Thanks.
And this is the result:

  resynth.png (44.21 KiB) Viewed 7656 times

#### Re: Sine OSC with phase shift option or cos osc

Posted: Mon Oct 10, 2016 8:21 pm
by DragonSF

[The extension mp3 has been deactivated and can no longer be displayed.]

And that's how it sounds (tanpura profile)

#### Re: Sine OSC with phase shift option or cos osc

Posted: Mon Oct 10, 2016 8:30 pm
by garyb
cool!

#### Re: Sine OSC with phase shift option or cos osc

Posted: Tue Oct 11, 2016 8:36 pm
by jksuperstar
Fabulous!