<!-- Converted to DocBook/SGML by Kevin Conder -->
<appendix id="MiscWindows">
  <title>Window Functions</title>

  <para>
    Windowing functions are used for analysis, and as waveform envelopes, particularly in granular synthesis. Window functions are built in to some opcodes, but others require a function table to generate the window. <link linkend="GEN20"><citetitle>GEN20</citetitle></link> is used for this purpose. The diagram of each window below, is accompanied by the f statement used to generate the it.
  </para>


  <formalpara>
    <title>Hamming</title>
    <para>
      <example>
        <title>Hamming window function statement</title>
        <programlisting>
f81   0   8192   20   1   1
        </programlisting>
      </example>

      <mediaobject>
        <imageobject>
          <imagedata fileref="images/image1.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>Hamming Window Function.</phrase>
        </textobject>
 
        <caption>
          <para>Hamming Window Function.</para>
        </caption>
      </mediaobject>
    </para>
  </formalpara>


  <formalpara>
    <title>Hanning</title>
    <para>
      <example>
        <title>Hanning window function statement</title>
        <programlisting>
f82   0   8192   20   2   1
        </programlisting>
      </example>
 
      <mediaobject>
        <imageobject>
          <imagedata fileref="images/image2.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>Hanning Window Function</phrase>
        </textobject>
 
        <caption>
          <para>Hanning Window Function</para>
        </caption>
      </mediaobject>
    </para>
  </formalpara>


  <formalpara>
    <title>Bartlett</title>
    <para>
      <example>
        <title>Bartlett window function statement</title>
        <programlisting>
f83   0   8192   20   3   1
        </programlisting>
      </example>
 
      <mediaobject>
        <imageobject>
          <imagedata fileref="images/image3.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>Bartlett Window Function</phrase>
        </textobject>
 
        <caption>
          <para>Bartlett Window Function</para>
        </caption>
      </mediaobject>
    </para>
  </formalpara>


  <formalpara>
    <title>Blackman</title>
    <para>
      <example>
        <title>Blackman window function statement</title>
        <programlisting>
f84   0   8192   20   4   1
        </programlisting>
      </example>
 
      <mediaobject>
        <imageobject>
          <imagedata fileref="images/image4.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>Blackman Window Function</phrase>
        </textobject>
 
        <caption>
          <para>Blackman Window Function</para>
        </caption>
      </mediaobject>
    </para>
  </formalpara>


  <formalpara>
    <title>Blackman-Harris</title>
    <para>
      <example>
        <title>Blackman-Harris window function statement</title>
        <programlisting>
f85   0   8192   20   5   1
        </programlisting>
      </example>
 
      <mediaobject>
        <imageobject>
          <imagedata fileref="images/image5.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>Blackman-Harris Window Function</phrase>
        </textobject>
 
        <caption>
          <para>Blackman-Harris Window Function</para>
        </caption>
      </mediaobject>
    </para>
  </formalpara>


  <formalpara>
    <title>Gaussian</title>
    <para>
      <example>
        <title>Gaussian window function statement</title>
        <programlisting>
f86   0   8192   20   6   1
        </programlisting>
      </example>
 
      <mediaobject>
        <imageobject>
          <imagedata fileref="images/image6.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>Gaussian Window Function</phrase>
        </textobject>
 
        <caption>
          <para>Gaussian Window Function</para>
        </caption>
      </mediaobject>
    </para>
  </formalpara>


  <formalpara>
    <title>Rectangle</title>
    <para>
      <example>
        <title>Rectangle window function statement</title>
        <programlisting>
f88   0   8192   -20   8   .1
        </programlisting>
      </example>

      <emphasis>Note</emphasis>: Vertical scale is exaggerated in this diagram.

      <mediaobject>
        <imageobject>
          <imagedata fileref="images/image7.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>Rectangle Window Function</phrase>
        </textobject>
 
        <caption>
          <para>Rectangle Window Function</para>
        </caption>
      </mediaobject>
    </para>
  </formalpara>


  <formalpara>
    <title>Sync</title>
    <para>
      <example>
        <title>Sync window function statement</title>
        <programlisting>
f89   0   4096   -20   9   .75
        </programlisting>
      </example>

      <mediaobject>
        <imageobject>
          <imagedata fileref="images/image8.png" format="PNG">
        </imageobject>
 
        <textobject>
          <phrase>Sync Window Function</phrase>
        </textobject>
 
        <caption>
          <para>Sync Window Function</para>
        </caption>
      </mediaobject>
    </para>
  </formalpara>
</appendix>
