WrapSummer:
Filter:
Classes (extension) | UGens > Triggers

WrapSummer : UGen : AbstractFunction : Object
ExtensionExtension

Pulse counter with floating point steps
Source: Summer.sc

Description

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.

Class Methods

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)

Arguments:

trig

The trigger. Trigger can be any signal. A trigger happens when the signal changes from non-positive to positive.

step

The step size. Can be a Float

min

Minimum value of the counter.

max

Maximum value of the counter.

reset

Resets the counter to resetval when triggered.

resetval

Value to which the counter is reset when it receives a reset trigger. If nil, then this is patched to min .

Inherited class methods

Instance Methods

Inherited instance methods

Examples