Trouble with phase in my mc.gen~ sequencer

James Bruce's icon

Hi!

I've been working on this sequencer in mc.gen~ based on some techniques from GO. Right now, I have 3 channels running a euclidean algorithm which I expanded to include some probability and ratcheting stuff.

I have a recurring issue which I have spent weeks trying to resolve: If I change the parameters for all 3 voices to play different rhythms, then shift back to a unison rhythm for all 3 voices, channel 1 is almost always out of phase with the other two. Channels 2 and 3 occasionally drift as well, but less consistently.

Can anyone more experienced help me to understand why this might be happening? I even rebuilt the phasor clock in the gen~ patch, but nothing seems to change the fact that my voices are not in phase with one another. Perhaps I'm overlooking something simple, but I'm really stuck here.

Thanks,

Jim

mcgeneuk2.maxpat
Max Patch