Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Prototype - Free running poly oscillators

Post any examples or modules that you want to share here

Prototype - Free running poly oscillators

Postby Exo » Sat Jun 14, 2014 5:31 pm

One of the biggest issues Synthmaker had for creating good sounding synths was a lack of free running poly oscs (as well as other things, non linear envelopes for one) , well I think I may have cracked it with a very simple solution but as yet unoptimized.

This is just a prototype so the osc is just a basic saw with no bandlimiting. I am planning to create a wavetable version that takes a float array for the waveshape which should suit all needs.

The effect of a free running osc can be quite subtle but it makes the sound more 'organic'.

Let me know if this is working like you would expect and then I can get on with creating a super wavetable version :D

Stable and finished version now available on Flowstone Guru....

Free Running Polyphonic Oscillators
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
Exo
 
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK

Re: Prototype - Free running poly oscillators

Postby KG_is_back » Sat Jun 14, 2014 6:37 pm

It is not working here... Using mem write primitive is always tricky. I have checked by changing the frequency to fixed very low value and conected the whole thing to a scope, so I can easily observe where the osc starts and ends. In both modes the phase resets.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Prototype - Free running poly oscillators

Postby Exo » Sat Jun 14, 2014 6:49 pm

KG_is_back wrote:It is not working here... Using mem write primitive is always tricky. I have checked by changing the frequency to fixed very low value and conected the whole thing to a scope, so I can easily observe where the osc starts and ends. In both modes the phase resets.


Thanks I was testing if the phase is written and read which it is. The problem I think is a stupid error in that I should be sample and holding the phase that is read, as it is now the phase is set for only the first sample.

Thought I could hear it working must have been placebo effect :)

I'm not at my machine now to test (won't be till tomorrow) but like I said adding a sample and hold for the phase should work.
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
Exo
 
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK

Re: Prototype - Free running poly oscillators

Postby Exo » Sat Jun 14, 2014 6:59 pm

The sample and hold code would be....

Code: Select all
polyin phase;
polyboolin trigger;
polyout startPhase;

startPhase = startPhase - trigger&(startPhase - phase);


Hoping that is the issue anyway could be wrong!
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
Exo
 
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK

Re: Prototype - Free running poly oscillators

Postby KG_is_back » Sat Jun 14, 2014 8:06 pm

Yes, that, and the execution order is wrong... you need to read first and then write. Connecting the write primitive to the code component rather than the read primitive solves the issue.

I have found another issue - write primitive works only for fist SSE channel. so only every 4th voice phase is written... others remain intact. Therefore you need to use four of them an unpack the 4sse channels.

Here's a working fix
Attachments
Free running poly osc.osm
(11.56 KiB) Downloaded 1945 times
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Prototype - Free running poly oscillators

Postby Exo » Sat Jun 14, 2014 9:09 pm

KG_is_back wrote:Yes, that, and the execution order is wrong... you need to read first and then write. Connecting the write primitive to the code component rather than the read primitive solves the issue.

I have found another issue - write primitive works only for fist SSE channel. so only every 4th voice phase is written... others remain intact. Therefore you need to use four of them an unpack the 4sse channels.

Here's a working fix


Thanks a lot for the help :). I was assuming that the write primitive would be using SSE internally as the mono section uses it, guess there is no reason to and probably doesn't for safety reasons, so one channel doesn't overwrite another.
Flowstone Guru. Blog and download site for Flowstone.
Best VST Plugins. Initial Audio.
Exo
 
Posts: 426
Joined: Wed Aug 04, 2010 8:58 pm
Location: UK

Re: Prototype - Free running poly oscillators

Postby adamszabo » Sun Jun 15, 2014 1:18 am

Guys this is really wierd, I wanted to detune two saws to check their phase, but they seem to get the same pitch even though they are independent. Also the scope is showing the oscs detuned but I get one saw output in my speaker. what the hell? :)
Attachments
strange.fsm
(137.46 KiB) Downloaded 1908 times
adamszabo
 
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Prototype - Free running poly oscillators

Postby KG_is_back » Sun Jun 15, 2014 3:39 am

adamszabo wrote:Guys this is really wierd, I wanted to detune two saws to check their phase, but they seem to get the same pitch even though they are independent. Also the scope is showing the oscs detuned but I get one saw output in my speaker. what the hell? :)


You are detuning for less then one semitone - You'll not hear it as two independent tones - rather as one tone with flanging/phasing effect. It works perfectly the way it should - disconnect one of the oscs to hear the difference.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Prototype - Free running poly oscillators

Postby adamszabo » Sun Jun 15, 2014 10:05 am

Ok I managed to make it work. Hmm, I think you guys are not doing it the correct way, or at least the way it works in every other synth. When I have two oscillators slightly detuned, their phase offset should follow their relative frequency speed. But in the examples posted, it seems random, so one might as well just use a random number generator which is much simpler. I have posted an example of what I think it should be like. Each oscillator should have its own accumulator that is the same speed as the ramp itself, and when one stops playing a key and starts again, the phase should continue where it left off.

Unfortunately since I had to use mono even though its poly it sounds best only with mono voices :(
Attachments
phase testing.osm
(57.05 KiB) Downloaded 1863 times
adamszabo
 
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Prototype - Free running poly oscillators

Postby KG_is_back » Sun Jun 15, 2014 11:41 am

Yes, that is the thing I have proposed. Current version saves the pases per pitch - so the phase will be recalled only when you press the same key - other keys have their own phase storages.

I have proposed a way that'll use memory queue to store phases. It would be a circular buffer. Every time you release the key, the phase is stored in the queue and queue end is increased by 1. Every time you press a key, the phase is recalled from queue start and start point is increased by 1. If start and end point are identical (which means queue is empty) zero phase is recalled instead.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Next

Return to User Examples

Who is online

Users browsing this forum: Google [Bot] and 38 guests