SuperCollider CLASSES (extension)

Summer
ExtensionExtension

Pulse counter with floating point steps
Inherits from: UGen : AbstractFunction : Object

Description

Summer, based on Stepper, but allowing floats as inputs, so that you can increment a sum with each step.

Class Methods

*ar (trig: 0, step: 1, reset: 0, resetval: 0)

*kr (trig: 0, step: 1, reset: 0, resetval: 0)

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

reset

Resets the counter to resetval when triggered.

resetval

Value to which the counter is reset when it receives a reset trigger.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

{SinOsc.ar(Summer.kr(Impulse.kr(5), 1.5, 0, 0).poll * 100, 0, 0.1)}.play;

(
{
    var trig = Dust.kr(5);
    var reset = Impulse.kr(0.5);
    SinOsc.ar(Summer.kr(trig, [0.5, 0.25], reset, 1) * 100, 0, 0.1)
}.play;
)