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

    <refpurpose>
      Get the current value (0-127) of a specified MIDI controller.
      <indexterm id="IndexMidictrl"><primary>midictrl</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Get the current value (0-127) of a specified MIDI controller.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ival <command>midictrl</command> inum [, imin] [, imax]</synopsis>

    <synopsis>kval <command>midictrl</command> inum [, imin] [, imax]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>inum</emphasis> -- MIDI controller number (0-127)
    </para>

    <para>
      <emphasis>imin, imax</emphasis> -- set minimum and maximum limits on values obtained.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      Get the current value (0-127) of a specified MIDI controller.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="aftouch"><citetitle>aftouch</citetitle></link>,
      <link linkend="ampmidi"><citetitle>ampmidi</citetitle></link>,
      <link linkend="cpsmidi"><citetitle>cpsmidi</citetitle></link>,
      <link linkend="cpsmidib"><citetitle>cpsmidib</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>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
  </refsect1>
</refentry>
