<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="zamod">
  <refmeta>
    <refentrytitle>zamod</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>zamod</refname>
    <refpurpose>
      Modulates one a-rate signal by a second one.
      <indexterm id="IndexZamod"><primary>zamod</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Modulates one a-rate signal by a second one.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>zamod</command> asig, kzamod</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>asig</emphasis> -- the input signal
    </para>

    <para>
      <emphasis>kzamod</emphasis> -- controls which za variable is used for modulation. A positive value means additive modulation, a negative value means multiplicative modulation. A value of 0 means no change to <emphasis>asig</emphasis>.
    </para>

    <para>
      <emphasis>zamod</emphasis> modulates one a-rate signal by a second one, which comes from a za variable. The location of the modulating variable is controlled by the i-rate or k-rate variable <emphasis>kzamod</emphasis>. This is the a-rate version of <link linkend="zkmod"><citetitle>zkmod</citetitle></link>.
    </para>
  </refsect1>

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

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="zacl"><citetitle>zacl</citetitle></link>,
      <link linkend="zkcl"><citetitle>ziw</citetitle></link>,
      <link linkend="zkmod"><citetitle>ziwm</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: Robin Whittle</member>
        <member>Australia</member>
        <member>May 1997</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
