| 1 | |
| 2 | <refentry id="wterrain"> |
| 3 | <indexterm id="IndexWterrain"><primary>wterrain</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Wave Terrain Synthesis</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>wterrain</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>wterrain</refname> |
| 13 | <refpurpose> |
| 14 | A simple wave-terrain synthesis opcode. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | A simple wave-terrain synthesis opcode. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>aout <command>wterrain</command> kamp, kpch, k_xcenter, k_ycenter, k_xradius, k_yradius, \ |
| 28 | itabx, itaby</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>itabx, itaby</emphasis> -- The two tables that define the terrain. |
| 35 | </para> |
| 36 | </refsect1> |
| 37 | |
| 38 | <refsect1> |
| 39 | <title>Performance</title> |
| 40 | <para> |
| 41 | The output is the result of drawing an ellipse with axes <emphasis>k_xradius</emphasis> and <emphasis>k_yradius</emphasis> centered at (<emphasis>k_xcenter</emphasis>, <emphasis>k_ycenter</emphasis>), and traversing it at frequency <emphasis>kpch</emphasis>. |
| 42 | </para> |
| 43 | </refsect1> |
| 44 | |
| 45 | <refsect1> |
| 46 | <title>Examples</title> |
| 47 | <para> |
| 48 | Here is an example of the wterrain opcode. It uses the file <ulink url="examples/wterrain.csd"><citetitle>wterrain.csd</citetitle></ulink>. |
| 49 | |
| 50 | <example> |
| 51 | <title>Example of the wterrain opcode.</title> |
| 52 | |
| 53 | |
| 54 | |
| 55 | <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> |
| 56 | <xi:include href="examples-xml/wterrain.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 57 | </example> |
| 58 | </para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>See Also</title> |
| 63 | <para><link linkend="SiggenWaveterr"><citetitle>Wave Terrain Synthesis</citetitle></link></para> |
| 64 | </refsect1> |
| 65 | |
| 66 | <refsect1> |
| 67 | <title>Credits</title> |
| 68 | <para> |
| 69 | <simplelist> |
| 70 | <member>Author: Matthew Gillard</member> |
| 71 | <member>New in version 4.19</member> |
| 72 | </simplelist> |
| 73 | </para> |
| 74 | </refsect1> |
| 75 | </refentry> |