hi Frank,
why do not you use wrap~ then?
Krzysztof
Frank Barknecht wrote: ...
Last night I found another, similar but simpler solution shown in the attached patch. It adds something to the phasor to get a shifted signal and then uses [>~ 1] from zexy (I think) to check, if the shifted sig goes beyond 1. If it does, I substract 1, which is the result of [>~ 1] if it's true, otherwise I substract 0, which is the result of [>~ 1] if that's false. This works for a phasor~ but not for other oscillating objects like the osc~, but here it's okay.