<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="repluck">
  <refmeta>
    <refentrytitle>repluck</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>repluck</refname>
    <refpurpose>
      Physical model of the plucked string.
      <indexterm id="IndexRepluck"><primary>repluck</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
       <emphasis>repluck</emphasis> is an implementation of the physical model of the plucked string. A user can control the pluck point, the pickup point, the filter, and an additional audio signal, <emphasis>axcite</emphasis>. <emphasis>axcite</emphasis> is used to excite the 'string'. Based on the Karplus-Strong algorithm.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>repluck</command> iplk, kamp, icps, kpick, krefl, axcite</synopsis>
 </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iplk</emphasis> -- The point of pluck is <emphasis>iplk</emphasis>, which is a fraction of the way up the string (0 to 1). A pluck point of zero means no initial pluck.
    </para>

    <para>
      <emphasis>icps</emphasis>  -- The string plays at <emphasis>icps</emphasis> pitch.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kamp</emphasis> -- Amplitude of note.
    </para>

    <para>
      <emphasis>kpick</emphasis> -- Proportion of the way along the string to sample the output.
    </para>

    <para>
      <emphasis>krefl</emphasis> -- the coefficient of reflection, indicating the lossiness and the rate of decay. It must be strictly between 0 and 1 (it will complain about both 0 and 1).
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>axcite</emphasis> -- A signal which excites the string.
    </para>
  </refsect1>

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

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="wgpluck2"><citetitle>wgpluck2</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namejohn;</member>
        <member>University of Bath/Codemist Ltd.</member>
        <member>Bath, UK</member>
        <member>1997</member>
      </simplelist>
    </para>
  </refsect1>
</refentry>
