limitSignal Modifiers:Signal Limiterslimitlimit
Sets the lower and upper limits of the value it processes.
Description
Sets the lower and upper limits of the value it processes.
Syntaxares limit asig, klow, khighires limit isig, ilow, ihighkres limit ksig, klow, khighires[] limit isig[], ilow, ihighkres[] limit ksig[], klow, khighInitializationisig -- input signal
ilow -- low threshold
ihigh -- high threshold
Performancexsig -- input signal
klow -- low threshold
khigh -- high threshold
limit sets the lower and upper limits on the xsig value it processes. If xhigh is lower than xlow, then the output will be the average of the two - it will not be affected by xsig.
This opcode is useful in several situations, such as table indexing or for clipping and modeling a-rate, i-rate or k-rate signals.
Examples
Here is an example of the limit opcode. It uses the file limit.csd.
Example of the limit opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSignal LimitersArray opcodesCreditsAuthor: Robin WhittleAustraliaNew in Csound version 3.46