A UGen that constrains a signal to a given range, by limiting values outside
the range to the range margins. This is similar to the clip2 binary operator
but permits both a lower range value lo and an upper range value hi .
Mathematically, this is equivalent to in.max(lo).min(hi).
Examples
// clip sine wave to modulate timbre
play {
val hi = SinOsc.ar(0.1).linexp(-1, 1, 0.01, 1.0)
Clip.ar(SinOsc.ar(300), 0, hi) * 0.2 / hi
}
A UGen that constrains a signal to a given range, by limiting values outside the range to the range margins. This is similar to the
clip2
binary operator but permits both a lower range valuelo
and an upper range valuehi
.Mathematically, this is equivalent to
in.max(lo).min(hi)
.Examples
Fold
Wrap