class library: SynthDef - lazy implementation of removeUGen
[supercollider.git] / HelpSource / Classes / Fold.schelp
blob8ca968c1ce686ba72faee9f58518e025cfd46967
1 class:: Fold
2 summary:: Fold a signal outside given thresholds.
3 related:: Classes/Clip, Classes/Wrap
4 categories::  UGens>Maths
7 Description::
9 This differs from the  link::Classes/BinaryOpUGen::  link::Overviews/Methods#fold2#fold2:: in that it
10 allows one to set low and high thresholds.
13 classmethods::
15 method::ar, kr
17 argument::in
18 Signal to be folded.
20 argument::lo
21 Low threshold of folding. Sample values < lo will be folded. must be less then hi.
23 argument::hi
24 High threshold of folding. Sample values > hi will be folded. must be greater then lo.
27 Examples::
29 code::
30 Server.internal.boot;
32 { Fold.ar(SinOsc.ar(440, 0, 0.2), -0.1, 0.1) }.scope;