<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="wguide1">
  <refmeta>
    <refentrytitle>wguide1</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>wguide1</refname>
    <refpurpose>
      A simple waveguide model consisting of one delay-line and one first-order lowpass filter.
      <indexterm id="IndexWguide1"><primary>wguide1</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      A simple waveguide model consisting of one delay-line and one first-order lowpass filter.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>wguide1</command> asig, xfreq, kcutoff, kfeedback</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>asig</emphasis> -- the input of excitation noise.
    </para>

    <para>
      <emphasis>xfreq</emphasis> -- the frequency (i.e. the inverse of delay time) Changed to x-rate in Csound version 3.59.
    </para>

    <para>
      <emphasis>kcutoff</emphasis> -- the filter cutoff frequency in Hz.
    </para>

    <para>
      <emphasis>kfeedback</emphasis> -- the feedback factor.
    </para>

    <para>
      <emphasis>wguide1</emphasis> is the most elemental waveguide model, consisting of one delay-line and one first-order lowpass filter.
    </para>

    <para>
      Implementing waveguide algorithms as opcodes, instead of orc instruments, allows the  user to set <emphasis>kr</emphasis> different than <emphasis>sr</emphasis>, allowing better performance particulary when using real-time.
    </para>

    <para>
      <mediaobject>
        <imageobject>
          <imagedata fileref="images/wguide1.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>wguide1.</phrase>
        </textobject>
 
        <caption>
          <para>wguide1.</para>
        </caption>
      </mediaobject>
    </para>
  </refsect1>

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

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="wguide2"><citetitle>wguide2</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namegabriel;</member>
        <member>Italy</member>
        <member>October 1998</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>

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