Mysterious mass detuning ends summer phase, prematurely

pereshaped's icon

The solution to this is doing a good job of evading me.

The included patch is a basic signal based detuner which uses cents as the detune mechanism in order to preserve intervals. It has 4 detunable channels.

It works as expected except for one really nagging problem.

No matter how I return the detune "cents" parameter back to zero it causes phasing between oscillators ( no matter what type of oscillator. I have included saw~ here because it is pretty obvious) . 

I would like to avoid event based reset phase messages (like phasor~ phase message) in order to keep the mechanism as universal and as signal based as possible.

I have had a look a various detuners in the forum but they don't answer this specific problem.

many thanks for any pointers

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

It is clear that oscilators will get out of phase,
if they run on different frequencies, and then suddenly
all run at same frequency.
You could try to drive all oscilators with single phasor~
and use rate~ objects to transpose the oscilators

pereshaped's icon

Hi, yes, that is clear. Thank you. As stated, avoiding Phasor~

rate~ relies on Phasor~ dependencies

Source Audio's icon

Than one could turn off all but one oscilator.
Simple as that.

pereshaped's icon

That is a nice and simple work around. Thank you.

Source Audio's icon

One could auto-adjust gain of the oscilators mix,
when oscilators which share same frequency get reduced to one.

pereshaped's icon

yes, I have explored this just now and I think that this seems like the way to go, and reset the phase of the other oscillators when quiet. I'm still experimenting. Thank you

Source Audio's icon

You don't even need to reset the oscilators,
if they get set to different frequency and so get unmuted,
the phase will be irrelevant.

pereshaped's icon

the initial phase problem is returning to zero. Thanks for your help anyway.