Gen~ Swing Output Issue: Double Output on Beat 1 (solved)

Hayden Ryan's icon

Hey Folks,

I can seem to solve this issue I am having with a gen~ patch.

I've created a modified gen~ version of Philip Meyer's swing patch.

Everything seems to be doing what it should be, except for a weird 'doubled' output that occurs every time the driving/Master phasor~ resets (on beat one). Connecting a live.scope~ doesn't make this issue visually apparent until you connect a what~ and print the output.

For example, a subdivision of 4 gives me 5 impulses, with beat one sending 2 impulses.

I'll attach my gen~ patcher and paste a clipboard link of the max patch below.

Any help would be much appreciated!

Solved: Set '+=' in Gen~ to @resetmode pre

GenSwing.gendsp
gendsp 13.08 KB
Max Patch
Copy patch and select New From Clipboard in Max.

enrico wiltsch's icon

I completely missed the @resetmode attribute for the += operator. This will help make everything cleaner and more efficient! THX

Enrico