xyscaleSignal Generators:Linear and Exponential Generatorsxyscalexyscale
2D linear interpolation
DescriptionPlugin opcode in emugens.
2D linear interpolation between 4 points at (0,0), (1,0), (0,1),
(1,1)
Syntaxkout xyscale kx, ky, k00, k10, k01, k11Performancekx, ky -- Coordinates
to evaluate the interpolation. Value between 0-1, where:
k00 -- Value of point at coord (x=0, y=0)
k10 -- Value of point at coord (x=1, y=0)
k01 -- Value of point at coord (x=0, y=1)
k11 -- Value of point at coord (x=1, y=1)
(0,1) (1,1)
(0,0) (1,0)
Given 4 values placed at the corners of a square,
find the interpolated value at point (x, y), where x and y
are defined between 0-1.
Examples
Here is an example of the xyscale opcode. It uses the file xyscale.csd.
Example of the xyscale opcode.
Here is another example of the xyscale opcode. It uses the file xyscale-FLTK.csd.
Advanced example of the xyscale opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoLinear and Exponential GeneratorsCreditsBy: &nameeduardo; 2017