scalearray
The scalearray opcode scales a subregion of a vector to a given minimum/maximum.
Syntax
Performance
karray -- array for operation.
kmin, kmax -- target minimum and maximum values.
kleft, kright -- range of table to use, defaulting to 0 and size of the vector.
Replacing scalet
scalet is the deprecated k-rate name. Replace scalet(kArray, kmin, kmax, kleft, kright) with scalearray(kArray, kmin, kmax, kleft, kright). Both modify the same array in place on each control cycle.
The left index is inclusive and the right index is exclusive. Defaults select the whole vector. scalearray also supports an i-rate array form for initialization-time scaling.
Examples
Here is an example of the scalearray opcode. It uses the file scalearray.csd.
See Also
Credits
Author: John ffitch
October 2011
New in Csound version 5.14
Renamed in Csound version 6.00