If I use this simple patch to reset the phase of two Phasor~ objects at the same time, they both give the same output at their respective Snapshot~ outputs as expected. BUT I would expect it to always give the same value but it's different each time, why is that?phasorphase.pd
-
Resetting phase of Phasor~
-
@nuromantix Because the bang and float are at control rate, they are both processed between audio blocks. Therefore, [snapshot~] can only return the last sample of [phasor~] from the previous block, and the phase of [phasor~] is reset for first sample of the next block. So what you're getting in the snapshot is the last value of the phasor before it's reset to 0. (Try setting the phasor frequency to 44100/64, 44100/128, 44100/192... and see how things change)