Fold:
Filter:
Classes | UGens > Maths

Fold : InRange : UGen : AbstractFunction : Object

Fold a signal outside given thresholds.
Source: Trig.sc

Description

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

Class Methods

Fold.ar(in: 0.0, lo: 0.0, hi: 1.0)

From superclass: InRange

Fold.kr(in: 0.0, lo: 0.0, hi: 1.0)

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