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.
A new model for a gesture sequencer can be reimagined as a DSP block diagram.
Instead of reading from a fairly linear score like Gest, this new system can be controlled in a more nonlinear way using a state machine and/or VM.
It would be a much more elegant system. A VM would allow for more generative musical structures to emerge. Also, multiple gestures could share the same VM, allowing for concurrent cross-communication between gestures.
@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.
@paul Where can I read about Gest, or gestural sequencers? Not sure I understand the term, but I’m interested in composable/combinable sequencers, which it sounds like you’re talking about?
We are an instance for discussions around cultural freedom, experimental, new media art, net and computational culture, and things like that.