<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="veloc">
  <refmeta>
    <refentrytitle>veloc</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>veloc</refname>
    <refpurpose>
      Get the velocity from a MIDI event.
      <indexterm id="IndexVeloc"><primary>veloc</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Get the velocity from a MIDI event.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ival <command>veloc</command> [ilow] [, ihigh]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>ilow, ihigh</emphasis> -- low and hi ranges for mapping
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      Get the MIDI byte value (0 - 127) denoting the velocity of the current event.
    </para>
  </refsect1>

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

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

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

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/veloc.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>
    </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="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>
    </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>
