<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="moog">
  <refmeta>
    <refentrytitle>moog</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>moog</refname>
    <refpurpose>
      An emulation of a mini-Moog synthesizer.
      <indexterm id="IndexMoog"><primary>moog</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      An emulation of a mini-Moog synthesizer.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>moog</command> kamp, kfreq, kfiltq, kfiltrate, kvibf, kvamp, iafn, iwfn, ivfn</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iafn, iwfn, ivfn</emphasis> -- three table numbers containing the attack waveform (unlooped), the main looping wave form, and the vibrato waveform. The files <ulink url="examples/mandpluk.aiff"><citetitle>mandpluk.aiff</citetitle></ulink> and <ulink url="examples/impuls20.aiff"><citetitle>impuls20.aiff</citetitle></ulink> are suitable for the first two, and a sine wave for the last. 
    </para>

    <note>
      <title>Note</title>
      <para>
        The files <quote>mandpluk.aiff</quote> and <quote>impuls20.aiff</quote> are also available at <ulink url="ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/"><citetitle>ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/sounds/modelling/</citetitle></ulink>.
      </para>
    </note>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kamp</emphasis> -- Amplitude of note.
    </para>

    <para>
      <emphasis>kfreq</emphasis> -- Frequency of note played.
    </para>

    <para>
      <emphasis>kfiltq</emphasis> -- Q of the filter, in the range 0.8 to 0.9
    </para>

    <para>
      <emphasis>kfiltrate</emphasis> -- rate control for the filter in the range 0 to 0.0002
    </para>

    <para>
      <emphasis>kvibf</emphasis> -- frequency of vibrato in Hertz. Suggested range is 0 to 12
    </para>

    <para>
      <emphasis>kvamp</emphasis> -- amplitude of the vibrato
    </para>
  </refsect1>

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

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

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

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

  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namejohn; (after &nameperry;)</member>
        <member>University of Bath, Codemist Ltd.</member>
        <member>Bath, UK</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>

    <para>New in Csound version 3.47</para>
  </refsect1>
</refentry>
