TrigAvg:
Filter:
Classes (extension) | UGens > Analysis | UGens > Maths

TrigAvg : UGen : AbstractFunction : Object
ExtensionExtension

triggered signal averager
Source: BatUGens.sc

Description

Averages the absolute values of its input between triggers.

Class Methods

TrigAvg.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;