SuperCollider CLASSES

Changed

Triggers when a value changes
Inherits from: Filter : PureUGen : UGen : AbstractFunction : Object

Description

Triggers when a value changes.

Class Methods

*ar (input, threshold: 0)

*kr (input, threshold: 0)

A special case fixed filter.

Arguments:

input

signal input

threshold

threshold

Discussion:

Implements the formula:

out(i) = abs(in(i) - in(i-1)) > thresh

Inherited class methods

Instance Methods

Inherited instance methods

Examples

detect changes in a signal:

(
{
    var changingSignal = LFNoise0.ar(1000);
    var changed = Changed.ar(changingSignal);
    [changingSignal, changed]
}.plot2
);