SuperCollider CLASSES

Fold

Fold a signal outside given thresholds.
Inherits from: InRange : UGen : AbstractFunction : Object

Description

This differs from the BinaryOpUGen fold2 in that it allows one to set low and high thresholds.

Class Methods

*ar (in: 0, lo: 0, hi: 1)

From superclass: InRange

*kr (in: 0, lo: 0, hi: 1)

From superclass: InRange

Arguments:

in

Signal to be folded.

lo

Low threshold of folding. Sample values < lo will be folded. must be less then hi.

hi

High threshold of folding. Sample values > hi will be folded. must be greater then lo.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

s.boot;

{ Fold.ar(SinOsc.ar(440, 0, 0.2), -0.1, 0.1) }.scope;