wrapSignal Modifiers:Signal Limiterswrapwrap
Wraps-around the signal that exceeds the low and high thresholds.
Description
Wraps-around the signal that exceeds the low and high thresholds.
Syntaxares wrap asig, klow, khighires wrap isig, ilow, ihighkres wrap ksig, klow, khighInitializationisig -- input signal
ilow -- low threshold
ihigh -- high threshold
Performancexsig -- input signal
klow -- low threshold
khigh -- high threshold
wrap wraps-around the signal that exceeds the low and high thresholds.
This opcode is useful in several situations, such as table indexing or for clipping and modeling a-rate, i-rate or k-rate signals. wrap is also useful for wrap-around of table data when the maximum index is not a power of two (see table and tablei). Another use of wrap is in cyclical event repeating, with arbitrary cycle length.
Examples
Here is an example of the wrap opcode. It uses the file wrap.csd.
Example of the wrap opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSignal LimitersCreditsAuthor: &namegabriel;ItalyNew in Csound version 3.49