SuperCollider CLASSES (extension)

TrigAvg
ExtensionExtension

triggered signal averager
Inherits from: UGen : AbstractFunction : Object

Description

Averages the absolute values of its input between triggers.

Class Methods

*kr (in: 0, trig: 0)

Arguments:

in

Signal Input

trig

When triggered, TrigAvg forgets the past average and starts averaging from zero.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

// average some values
x = { TrigAvg.kr(MouseX.kr(0,1000).round(100), MouseY.kr(-1, 1)).poll }.play;
x.free;

x = { TrigAvg.kr(SinOsc.ar(1), Impulse.kr(0.5)).poll }.play;
x.free;