lincosSignal Generators:Linear and Exponential Generatorslincoslincos
Linear to cosine interpolation
DescriptionPlugin opcode in emugens.
Maps a linear range of values to a cosine (easy-in/easy-out) range of values.
At present it supports only scalars, at i- and k-time (no arrays)
Syntaxky lincos kx, ky0, ky1 [, kx0, kx1 ]iy lincos ix, iy0, iy1 [, ix0, ix1 ]Performancekx -- Input signal
ky0 -- Lower limit of output range
ky1 -- Higher limit of output range
kx0 -- Lower limit of input range (default = 0)
kx1 -- Higher limit of input range (default = 1)
dx = ((x-x0) / (x1-x0)) * PI + PI
y = y0 + ((y1 - y0) * (1 + cos(dx)) / 2.0);
Examples
Here is an example of the lincos opcode. It uses the file lincos.csd.
Example of the lincos opcode.See alsoLinear and Exponential GeneratorsCreditsBy: &nameeduardo; 2018New plugin in version 6.12