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

    <refpurpose>
      Get the current value of a MIDI channel controller.
      <indexterm id="IndexChanctrl"><primary>chanctrl</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Get the current value of a controller and optionally map it onto specified range.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ival <command>chanctrl</command> ichnl, ictlno [, ilow] [, ihigh]</synopsis>

    <synopsis>kval <command>chanctrl</command> ichnl, ictlno [, ilow] [, ihigh]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ichnl</emphasis> -- the MIDI channel (1-16).
    </para>

    <para>
      <emphasis>ictlno</emphasis> -- the MIDI controller number (0-127).
    </para>

    <para>
      <emphasis>ilow</emphasis>, <emphasis>ihigh</emphasis> -- low and high ranges for mapping
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namemike;</member>
        <member>Mills College</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>
