| 1 |
|
| 2 |
<refentry id="xyscale"> |
| 3 |
<indexterm id="IndexXyscale"><primary>xyscale</primary></indexterm> |
| 4 |
|
| 5 |
<refentryinfo><title>Signal Generators:Linear and Exponential Generators</title></refentryinfo> |
| 6 |
<refmeta> |
| 7 |
<refentrytitle>xyscale</refentrytitle> |
| 8 |
</refmeta> |
| 9 |
|
| 10 |
<refnamediv> |
| 11 |
<refname>xyscale</refname> |
| 12 |
<refpurpose> |
| 13 |
2D linear interpolation |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para>Plugin opcode in emugens.</para> |
| 20 |
<para> |
| 21 |
2D linear interpolation between 4 points at (0,0), (1,0), (0,1), |
| 22 |
(1,1) |
| 23 |
</para> |
| 24 |
</refsect1> |
| 25 |
|
| 26 |
<refsect1> |
| 27 |
<title>Syntax</title> |
| 28 |
|
| 29 |
<synopsis>kout <command>xyscale</command> kx, ky, k00, k10, k01, k11</synopsis> |
| 30 |
|
| 31 |
</refsect1> |
| 32 |
|
| 33 |
<refsect1> |
| 34 |
|
| 35 |
<title>Performance</title> |
| 36 |
|
| 37 |
<para> |
| 38 |
<emphasis>kx</emphasis>, <emphasis>ky</emphasis> -- Coordinates |
| 39 |
to evaluate the interpolation. Value between 0-1, where: |
| 40 |
</para> |
| 41 |
<para> |
| 42 |
<emphasis>k00</emphasis> -- Value of point at coord (x=0, y=0) |
| 43 |
</para> |
| 44 |
<para> |
| 45 |
<emphasis>k10</emphasis> -- Value of point at coord (x=1, y=0) |
| 46 |
</para> |
| 47 |
|
| 48 |
<para> |
| 49 |
<emphasis>k01</emphasis> -- Value of point at coord (x=0, y=1) |
| 50 |
</para> |
| 51 |
<para> |
| 52 |
<emphasis>k11</emphasis> -- Value of point at coord (x=1, y=1) |
| 53 |
</para> |
| 54 |
|
| 55 |
<programlisting> |
| 56 |
|
| 57 |
(0,1) (1,1) |
| 58 |
|
| 59 |
|
| 60 |
(0,0) (1,0) |
| 61 |
|
| 62 |
|
| 63 |
</programlisting> |
| 64 |
<para> |
| 65 |
Given 4 values placed at the corners of a square, |
| 66 |
find the interpolated value at point (x, y), where x and y |
| 67 |
are defined between 0-1. |
| 68 |
</para> |
| 69 |
|
| 70 |
</refsect1> |
| 71 |
<refsect1> |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
<title>Examples</title> |
| 76 |
<para> |
| 77 |
Here is an example of the xyscale opcode. It uses the file <ulink url="examples/xyscale.csd"><citetitle>xyscale.csd</citetitle></ulink>. |
| 78 |
<example> |
| 79 |
<title>Example of the xyscale opcode.</title> |
| 80 |
<xi:include href="examples-xml/xyscale.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 81 |
</example> |
| 82 |
</para> |
| 83 |
</refsect1> |
| 84 |
|
| 85 |
<refsect1> |
| 86 |
<para> |
| 87 |
Here is another example of the xyscale opcode. It uses the file <ulink url="examples/xyscale-FLTK.csd"><citetitle>xyscale-FLTK.csd</citetitle></ulink>. |
| 88 |
<example> |
| 89 |
<title>Advanced example of the xyscale opcode.</title> |
| 90 |
<para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 91 |
<xi:include href="examples-xml/xyscale-FLTK.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 92 |
</example> |
| 93 |
</para> |
| 94 |
</refsect1> |
| 95 |
|
| 96 |
<refsect1> |
| 97 |
<title>See also</title> |
| 98 |
<para><link linkend="SiggenLineexp"><citetitle>Linear and Exponential Generators</citetitle></link></para> |
| 99 |
</refsect1> |
| 100 |
|
| 101 |
<refsect1> |
| 102 |
|
| 103 |
<title>Credits</title> |
| 104 |
<para>By: &nameeduardo; 2017</para> |
| 105 |
</refsect1> |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
</refentry> |