<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="wgbrass">
  <refmeta>
    <refentrytitle>wgbrass</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>wgbrass</refname>
    <refpurpose>
      Creates a tone related to a brass instrument.
      <indexterm id="IndexWgbrass"><primary>wgbrass</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Audio output is a tone related to a brass instrument, using a physical model developed from &nameperry;, but re-coded for Csound. 
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>wgbrass</command> kamp, kfreq, ktens, iatt, kvibf, kvamp, ifn [, iminfreq]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iatt</emphasis> -- time taken to reach full pressure
    </para>

    <para>
      <emphasis>ifn</emphasis> -- table of shape of vibrato, usually a sine table, created by a function
    </para>

    <para>
      <emphasis>iminfreq</emphasis> -- lowest frequency at which the instrument will play. If it is omitted it is taken to be the same as the initial <emphasis>kfreq</emphasis>. If <emphasis>iminfreq</emphasis> is negative, initialization will be skipped.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      A note is played on a brass-like instrument, with the arguments as below.
    </para>

    <para>
      <emphasis>kamp</emphasis> -- Amplitude of note.
    </para>

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

    <para>
      <emphasis>ktens</emphasis> -- lip tension of the player. Suggested value is about 0.4
    </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>

    <warning>
      <title>NOTE</title>
      <para>
        This is rather poor, and at present uncontrolled. Needs revision, and possibly more parameters.
      </para>
    </warning>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the wgbrass opcode. It uses the files <ulink url="examples/wgbrass.orc"><citetitle>wgbrass.orc</citetitle></ulink> and <ulink url="examples/wgbrass.sco"><citetitle>wgbrass.sco</citetitle></ulink>.

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

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

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/wgbrass.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 3.47</para>
  </refsect1>
</refentry>
