<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="wterrain">
  <refmeta>
    <refentrytitle>wterrain</refentrytitle>
  </refmeta>

  <refnamediv>
    <refname>wterrain</refname>
    <refpurpose>
      A simple wave-terrain synthesis opcode.
      <indexterm id="IndexWterrain"><primary>wterrain</primary></indexterm>
    </refpurpose>
  </refnamediv>
  
  <refsect1>
    <title>Description</title>
    <para>
      A simple wave-terrain synthesis opcode.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>aout <command>wterrain</command> kamp, kpch, k_xcenter, k_ycenter, k_xradius, k_yradius, itabx, itaby</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>itabx, itaby</emphasis> -- The two tables that define the terrain.
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      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>.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the wterrain opcode. It uses the files <ulink url="examples/wterrain.orc"><citetitle>wterrain.orc</citetitle></ulink> and <ulink url="examples/wterrain.sco"><citetitle>wterrain.sco</citetitle></ulink>.

      <example>
        <title>Example of the wterrain opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/wterrain.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/wterrain.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: Matthew Gillard</member>
        <member>New in version 4.19</member>
      </simplelist>
    </para>
  </refsect1>
</refentry>
