<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="wgbowedbar">
  <refmeta>
    <refentrytitle>wgbowedbar</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>wgbowedbar</refname>
    <refpurpose>
      A physical model of a bowed bar.
      <indexterm id="IndexWgbowedbar"><primary>wgbowedbar</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      A physical model of a bowed bar, belonging to the &nameperry; family of waveguide instruments.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>wgbowedbar</command> kamp, kfreq, kpos, kbowpres, kgain [, iconst] [, itvel] [, ibowpos] [, ilow]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iconst</emphasis> (optional, default=0) -- an integration constant. Default is zero.
    </para>

    <para>
      <emphasis>itvel</emphasis> (optional, default=0) -- either 0 or 1. When <emphasis>ktvel</emphasis> = 0, the bow velocity follows an ADSR style trajectory. When <emphasis>ktvel</emphasis> = 1, the value of the bow velocity decays in an exponentially.
    </para>

    <para>
      <emphasis>ibowpos</emphasis> (optional, default=0) -- the position on the bow, which affects the bow velocity trajectory.
    </para>

    <para>
      <emphasis>ilow</emphasis> (optional, default=0) -- lowest frequency required
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kamp</emphasis> -- amplitude of signal
    </para>

    <para>
      <emphasis>kfreq</emphasis> -- frequency of signal
    </para>

    <para>
      <emphasis>kpos</emphasis> -- position of the bow on the bar, in the range 0 to 1
    </para>

    <para>
      <emphasis>kbowpres</emphasis> -- pressure of the bow (as in <emphasis>wgbowed</emphasis>)
    </para>

    <para>
      <emphasis>kgain</emphasis> -- gain of filter. A value of about 0.809 is suggested.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the wgbowedbar opcode. It uses the files <ulink url="examples/wgbowedbar.orc"><citetitle>wgbowedbar.orc</citetitle></ulink> and <ulink url="examples/wgbowedbar.sco"><citetitle>wgbowedbar.sco</citetitle></ulink>.

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

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

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/wgbowedbar.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>New in Csound version 4.07</para>
  </refsect1>
</refentry>
