scaleSignal Generators:Linear and Exponential Generatorsscalescale
Arbitrary signal scaling.
Description
Scales incoming value to user-definable range. Similar to scale object found in popular dataflow languages.
Syntaxkscl scale kinput, kmax, kmin[, kimax, kimin]Performancekin -- Input value. Can originate from any
k-rate source as long as that source's output is in range
kimin to kimax.
kmin -- Minimum value of the resultant scale operation.
kmax -- Maximum value of the resultant scale operation.
kimin -- Optional; Minimum of the incoming
value range, defaulting to zero.
kimax -- Optional; Maximum of the incoming
value range, defaulting to one.
Take care with the order of the arguments which has maximum
before minimumExamples
Here is an example of the scale opcode. It uses the file scale.csd.
Example of the scale opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoLinear and Exponential GeneratorsCreditsAuthor: David AkbariOctober2006&namejohn;Modified to add input range values in 2020