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

  <refnamediv>
    <refname>polyaft</refname>
    <refpurpose> 
      Returns the polyphonic after-touch pressure of the selected note number.
      <indexterm id="IndexPolyaft"><primary>polyaft</primary></indexterm>
    </refpurpose> 
  </refnamediv>

  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>polyaft</emphasis> returns the polyphonic pressure of the selected note number, optionally mapped to an user-specified range.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ir <command>polyaft</command> inote [, ilow] [, ihigh]</synopsis>

    <synopsis>kr <command>polyaft</command> inote [, ilow] [, ihigh]</synopsis>
  </refsect1>

  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>inote</emphasis> -- note number. Normally set to the value returned by <link linkend="notnum"><citetitle>notnum</citetitle></link>
    </para>

    <para>
      <emphasis>ilow</emphasis> (optional, default: 0) -- lowest output value
    </para>

    <para>
      <emphasis>ihigh</emphasis> (optional, default: 127) -- highest output value
    </para>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>kr</emphasis> -- polyphonic pressure (aftertouch).
    </para>
  </refsect1>

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

    <para>
      Don't forget that you must include the <link linkend="FlagsMinusUpperF"><citetitle>-F flag</citetitle></link> when using an external MIDI file like <quote>polyaft.mid</quote>.
    </para>

    <para>
      <example>
        <title>Example of the polyaft opcode.</title>

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

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

  <refsect1>
    <title>Credits</title>
    <para>Added thanks to an email from &nameistvan;</para>
    <para>New in version 4.12</para>
  </refsect1>
</refentry>
