Added auto-synchronization to my rephasor algorithm, a process which resynthesizes an input phasor signal (periodic ramp signal), using a scaling value to change the frequency in relative terms (2=twice as fast, 0.5=twice as slow, etc).
This sound demo consists of 3 oscillators which pitches are being modulated by phasor signals. 2 of these phasors are rephasors with synchronization, sourced from the other phasor.
In the patch, these rephasors speed up and then slow down back to the original rate.
Notice how the voices settle back to the original rate, they gradually line up again.
And here is the same patch using old version of the algorithm.
Without autosync, rephasors will suffer from time drift, even if they are playing at the same rate.
Right where the voices settle down, you can hear some voices consistently playing at the wrong time. It never lines up. This is the "drift".
The rephasor is at the core of my gesture sequencer, Gest. Most of the constructs and complexities in Gest have something to do with mitigating this clock drift.
But now, here it is, clock drift prevention baked into the rephasor as part of the DSP algorithm. This has a lot of implications for what can be possible now.
@freakazoid Yes, they can be thought of as independent clocks, defined in relative terms.
a big contributor to drift is that I intentionally use truncation instead of wraparound in the new phasors (this is better when it's being used as a clock signal). So that small bit of timing information gets lost. There's also bound to be natural floating point numerical errors at some point too.
The synchronization aspect adds check-in and course correction between the original phasor and the rephasor.
@freakazoid it's how the phasor handles the extra values that go beyond 1. Wraparound saves the bits (using modulo to be in range 0 and 1 if needed). Truncation discards the bits completely and starts over.
For example, say the phasor is incremented and goes to 1.001. with wraparound, the next value goes to 0.001. with truncation, the next value is 0.
@freakazoid the alternative clock signal I've used in the past is an impulse, a single sample tick that repeats periodically. A phasor is better than a clock because it embeds progress within the beat.
We are an instance for discussions around cultural freedom, experimental, new media art, net and computational culture, and things like that.