AverageOutput:
Filter:
Classes (extension) | UGens > Analysis

AverageOutput : UGen : AbstractFunction : Object
ExtensionExtension

calculates mean average of audio or control rate signal

Description

The mean average output since the last received trigger.

Class Methods

AverageOutput.ar(in, trig: 0, mul: 1, add: 0)

AverageOutput.kr(in, trig: 0, mul: 1, add: 0)

Arguments:

in

input signal.

trig

if changes from <= 0 to > 0, resets average and count to zero.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

// stepper cycles between 0 and 1, average hovers around 0.5
a = { AverageOutput.kr(Stepper.kr(Impulse.kr(1), min: 0, max: 1)).poll }.play;

a.free;