<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="aftouch">
  <refmeta>
    <refentrytitle>aftouch</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>aftouch</refname>

    <refpurpose>
      Get the current after-touch value for this channel.
      <indexterm id="IndexAftouch"><primary>aftouch</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Get the current after-touch value for this channel.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>kaft <command>aftouch</command> [imin] [, imax]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>imin</emphasis> (optional, default=0) -- minimum limit on values obtained.
    </para>

    <para>
      <emphasis>imax</emphasis> (optional, default=127) -- maximum limit on values obtained.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      Get the current after-touch value for this channel. Note that this access to pitch-bend data is independent of the MIDI pitch, enabling the value here to be used for any arbitrary purpose.
    </para>
  </refsect1>

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

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

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

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

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="ampmidi"><citetitle>ampmidi</citetitle></link>,
      <link linkend="cpsmidi"><citetitle>cpsmidi</citetitle></link>,
      <link linkend="cpsmidib"><citetitle>cpsmidib</citetitle></link>,
      <link linkend="midictrl"><citetitle>midictrl</citetitle></link>,
      <link linkend="notnum"><citetitle>notnum</citetitle></link>,
      <link linkend="octmidi"><citetitle>octmidi</citetitle></link>,
      <link linkend="octmidib"><citetitle>octmidib</citetitle></link>,
      <link linkend="pchbend"><citetitle>pchbend</citetitle></link>,
      <link linkend="pchmidi"><citetitle>pchmidi</citetitle></link>,
      <link linkend="pchmidib"><citetitle>pchmidib</citetitle></link>,
      <link linkend="veloc"><citetitle>veloc</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namebarry; - &namemike;</member>
        <member>MIT - Mills</member>
        <member>May 1997</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
