<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="mandol">
  <refmeta>
    <refentrytitle>mandol</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>mandol</refname>
    <refpurpose>
      An emulation of a mandolin.
      <indexterm id="IndexMandol"><primary>mandol</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      An emulation of a mandolin.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>mandol</command> kamp, kfreq, kpluck, kdetune, kgain, ksize, ifn [, iminfreq]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ifn</emphasis> -- table number containing the pluck wave form. The file <ulink url="examples/mandpluk.aiff"><citetitle>mandpluk.aiff</citetitle></ulink> is suitable for this. It is 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>

    <para>
      <emphasis>iminfreq</emphasis> (optional, default=0) -- Lowest frequency to be played on the note. If it is omitted it is taken to be the same as the initial <emphasis>kfreq</emphasis>.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kamp</emphasis> -- Amplitude of note.
    </para>

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

    <para>
      <emphasis>kpluck</emphasis> -- The pluck position, in range 0 to 1. Suggest 0.4.
    </para>

    <para>
      <emphasis>kdetune </emphasis> -- The proportional detuning between the two strings. Suggested range 0.9 to 1.
    </para>

    <para>
      <emphasis>kgain</emphasis> -- the loop gain of the model, in the range 0.97 to 1.
    </para>

    <para>
      <emphasis>ksize</emphasis> -- The size of the body of the mandolin. Range 0 to 2.
    </para>
  </refsect1>

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

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

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

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/mandol.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>
