SuperCollider CLASSES

Integrator

A leaky integrator.
Source: /Applications/SuperCollider/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/Audio/Filter.sc
Inherits from: Filter : UGen : AbstractFunction : Object

Description

Integrates an input signal with a leak. The formula implemented is:

out(0) = in(0) + (coef * out(-1))

Class Methods

*ar (in = 0, coef = 1, mul = 1, add = 0)

*kr (in = 0, coef = 1, mul = 1, add = 0)

Arguments:

in

The input signal.

coef

Leak coefficient.

mul

Output will be multiplied by this value.

add

This value will be added to the output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples


{ Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play

// used as an envelope
{ Integrator.ar(LFPulse.ar(3, 0.2, 0.0004), 0.999, FSinOsc.ar(700), 0) }.play


// scope, using the internal server:

{ Integrator.ar(LFPulse.ar(1500 / 4, 0.2, 0.1), MouseX.kr(0.01, 0.999, 1)) }.scope