1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; IRIX 6.3 IP32) [Netscape]">
<TITLE>MIDI_CONVERTERS</TITLE>
</HEAD>
<BODY>
<CENTER><A NAME="MIDI_CONVERTERS"></A>
<HR><B><A HREF="../REFER.html">QUICK-REF</A></B> - <B><A HREF="../TITLE.html"><FONT SIZE=+1>C</FONT>soundManual</A></B>
- <B><A HREF="CONVERTERS.html">Top of this section</A></B> - <A HREF="cps2pch.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="moscil.html">Next</A>
<HR></CENTER>
<H2>
MIDI CONVERTERS</H2>
<PRE> ival <B>notnum</B>
ival <B>veloc</B>
icps <B>cpsmidi</B>
icps <B>cpsmidib
</B> kcps <B>cpsmidib</B> [irange]
ioct <B>octmidi</B>
ioct <B>octmidib
</B> koct <B>octmidib</B> [irange]
ipch <B>pchmidi</B>
ipch <B>pchmidib
</B> kpch <B>pchmidib</B> [irange]
iamp <B>ampmidi</B> iscal[, ifn]
kaft <B>aftouch</B> iscal
kchpr <B>chpress</B> iscal
kbend <B>pchbend</B> iscal
ival <B>midictrl</B> inum[, initial]
kval <B>midictrl</B> inum[, initial]
kval <B>midictrlsc</B> inum[, iscal][, ioffset][, initial]
ival <B>chanctrl</B> ichnl, ictlno[,ilow,ihigh]
kval <B>chanctrl</B> ichnl, ictlno[,ilow,ihigh]
<B>ctrlinit</B> ichnkm, ictlno1, ival1[, ictlno2, ival2[, ictlno3, ival3[,..ival32]]</PRE>
<HR>
<H4>
<U>DESCRIPTION</U></H4>
Get a value from the MIDI event that activated this instrument, or from
a continuous MIDI controller, and convert it to a locally useful format.
<H4>
<U>INITIALIZATION</U></H4>
<I>iscal</I> - I-time scaling factor.
<P><I>ifn</I> (optional) - function table number of a normalized translation
table, by which the incoming value is first interpreted. The default value
is 0, denoting no translation.
<P><I>inum, ictlno </I>- MIDI controller number.
<P><I>initial</I> - the <I>initial</I> value of the controller.
<P><I>ilow, ihigh</I> - low and hi ranges for mapping
<P><I>irange</I> - the pitch bend range in semitones.
<P><I>ichnl, ichnkm</I> - the midi channel<BR>
<BR>
<BR>
<H4>
<U>PERFORMANCE</U></H4>
<B>notnum</B>, <B>veloc</B> - get the MIDI byte value (0 - 127) denoting
the note number or velocity of the current event.
<P><B>cpsmidi</B>, <B>octmidi</B>, <B>pchmidi</B> - get the note number
of the current MIDI event, expressed in cps, oct, or pch units for local
processing.
<P><B>cpsmidib</B>, <B>octmidib</B>, <B>pchmidib</B> - get the note number
of the current MIDI event, modify it by the current pitch-bend value, and
express the result in cps, oct, or pch units. Available as an I-time value
or as a continuous ksig value.
<P><B>ampmidi</B> - get the velocity of the current MIDI event, optionally
pass it through a normalized translation table, and return an amplitude
value in the range 0 - <I>iscal</I>.
<P><B>aftouch</B>, <B>chpress</B>, <B>pchbend</B> - get the current after-touch,
channel pressure, or pitch-bend value for this channel, rescaled to the
range 0 - <I>iscal</I>. 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.
<P><B>midictrl</B> - get the current value (0 - 127) of a specified MIDI
controller.
<P><B>midictrlsc</B> - get a scaled and offset value of a controller.
<P><B>chanctrl</B> - Get the current value of a controller and optionally
map it onto specified range. <I>ichnl</I> is the MIDI channel and
<I>ictlno</I> is the MIDI controller number.
<P><B>ctrlinit</B> - Sets initial values for a set of MIDI controllers.
<BR><BR>
<BR>
<H4>
<U>AUTHOR:</U></H4>
Barry Vercoe - Mike Berry
<BR>MIT - Mills
<BR>May 1997
<CENTER></CENTER>
<CENTER>
<HR><B><A HREF="../REFER.html">QUICK-REF</A></B> - <B><A HREF="../TITLE.html"><FONT SIZE=+1>C</FONT>soundManual</A></B>
- <B><A HREF="CONVERTERS.html">Top of this section</A></B> - <A HREF="cps2pch.html">Previous</A>
- <A HREF="../CONTENTS.html">Contents</A> - <A HREF="../INDEX.html">Index</A>
- <A HREF="moscil.html">Next</A>
<HR></CENTER>
<CENTER></CENTER>
<CENTER><B><I><FONT COLOR="#006600">HTML Csound Manual - <FONT SIZE=-1>©
Jean Piché & Peter J. Nix, 1994-97</FONT></FONT></I></B></CENTER>
</BODY>
</HTML>
|