WrapSummer, based on Stepper, but allowing floats as inputs, so that you can increment a sum with each step. WrapSummer differs from Summer in that it wraps around min and max values.
WrapSummer.ar(trig: 0, step: 1, min: 0, max: 1, reset: 0, resetval)
WrapSummer.kr(trig: 0, step: 1, min: 0, max: 1, reset: 0, resetval)
The trigger. Trigger can be any signal. A trigger happens when the signal changes from non-positive to positive.
The step size. Can be a Float
Minimum value of the counter.
Maximum value of the counter.
Resets the counter to
resetval when triggered.
Value to which the counter is reset when it receives a reset trigger. If
nil, then this is patched to