input signal to constrain
lower margin of wrapping (inclusive)
upper margin of wrapping (exclusive)
input signal to constrain
lower margin of wrapping (inclusive)
upper margin of wrapping (exclusive)
input signal to constrain
lower margin of wrapping (inclusive)
upper margin of wrapping (exclusive)
A UGen that constrains a signal to a given range, by "wrapping" values outside the range. This is similar to the
wrap2
binary operator but permits both a lower range valuelo
and an upper range valuehi
.An input value greater than or equal to
hi
will be wrapped back to(in - hi) % (hi - lo) + lo
. An input value less thanlo
will be wrapped back tohi - (lo - in) % (hi - lo)
.Examples
Clip
Fold