Sine OSC with phase shift option or cos osc

A place for developers to share ideas and assist each other in solving problems.

Moderators: valis, garyb

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Sine OSC with phase shift option or cos osc

Post by DragonSF » Mon Oct 03, 2016 2:39 am

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.
Last edited by DragonSF on Mon Oct 03, 2016 8:05 pm, edited 2 times in total.

User avatar
faxinadu
Posts: 1384
Joined: Wed Nov 01, 2006 3:12 am
Location: israel
Contact:

Re: Sine OSC with pahse shift option

Post by faxinadu » Mon Oct 03, 2016 5:00 am

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
Scope 3rd Party Developer
http://www.oceanswift.net
Scope, Android and PC Developer
https://www.facebook.com/purechordsrecords/
Music
https://faxinadu.bandcamp.com/

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option

Post by DragonSF » Mon Oct 03, 2016 3:44 pm

As soon as the dongle arrives consider it done!
Last edited by DragonSF on Mon Oct 03, 2016 3:48 pm, edited 1 time in total.

User avatar
garyb
Posts: 21665
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Re: Sine OSC with pahse shift option

Post by garyb » Mon Oct 03, 2016 3:46 pm

you need a dongle for that?

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option

Post by DragonSF » Mon Oct 03, 2016 3:50 pm

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.

User avatar
garyb
Posts: 21665
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Re: Sine OSC with phase shift option

Post by garyb » Mon Oct 03, 2016 3:52 pm

there are a bunch of oscs in modular.

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option

Post by DragonSF » Mon Oct 03, 2016 3:54 pm

Not any one with phase shift option (AFAIK). I need one either sin or cos waveform (dynamically changeable).

User avatar
garyb
Posts: 21665
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Re: Sine OSC with phase shift option

Post by garyb » Mon Oct 03, 2016 3:56 pm

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.

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option

Post by DragonSF » Mon Oct 03, 2016 4:03 pm

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).

User avatar
garyb
Posts: 21665
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Re: Sine OSC with phase shift option

Post by garyb » Mon Oct 03, 2016 4:46 pm

control is control, isn't it?
i think it's doable, but of course, i'm not a developer...

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option

Post by DragonSF » Mon Oct 03, 2016 5:07 pm

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.
Last edited by DragonSF on Mon Oct 03, 2016 8:04 pm, edited 1 time in total.

User avatar
garyb
Posts: 21665
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Re: Sine OSC with phase shift option

Post by garyb » Mon Oct 03, 2016 5:14 pm

sure, but they exist afaik.

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option or cos osc

Post by DragonSF » Tue Oct 04, 2016 4:11 am

I found out, I can use the complex sine osc with a 2:1 switch.

User avatar
garyb
Posts: 21665
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Re: Sine OSC with phase shift option or cos osc

Post by garyb » Tue Oct 04, 2016 10:26 am

cool!

User avatar
faxinadu
Posts: 1384
Joined: Wed Nov 01, 2006 3:12 am
Location: israel
Contact:

Re: Sine OSC with phase shift option or cos osc

Post by faxinadu » Tue Oct 04, 2016 8:31 pm

can you explain that? what do you mean use it with a 2:1 switch?
Scope 3rd Party Developer
http://www.oceanswift.net
Scope, Android and PC Developer
https://www.facebook.com/purechordsrecords/
Music
https://faxinadu.bandcamp.com/

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option or cos osc

Post by DragonSF » Wed Oct 05, 2016 3:24 pm

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
PArt OSC.png (28.11 KiB) Viewed 2145 times

User avatar
faxinadu
Posts: 1384
Joined: Wed Nov 01, 2006 3:12 am
Location: israel
Contact:

Re: Sine OSC with phase shift option or cos osc

Post by faxinadu » Wed Oct 05, 2016 8:45 pm

very nice!!!!
Scope 3rd Party Developer
http://www.oceanswift.net
Scope, Android and PC Developer
https://www.facebook.com/purechordsrecords/
Music
https://faxinadu.bandcamp.com/

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option or cos osc

Post by DragonSF » Wed Oct 05, 2016 9:54 pm

Thanks.
And this is the result:
resynth.png
resynth.png (44.21 KiB) Viewed 2137 times

DragonSF
Posts: 382
Joined: Sun Nov 08, 2015 4:28 pm

Re: Sine OSC with phase shift option or cos osc

Post by DragonSF » Mon Oct 10, 2016 8:21 pm

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

And that's how it sounds (tanpura profile)

User avatar
garyb
Posts: 21665
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Re: Sine OSC with phase shift option or cos osc

Post by garyb » Mon Oct 10, 2016 8:30 pm

cool!

Post Reply