File: midi.html

package info (click to toggle)
csound-doc 3.47b2-2
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 1,492 kB
  • ctags: 272
  • sloc: makefile: 36
file content (121 lines) | stat: -rw-r--r-- 5,277 bytes parent folder | download | duplicates (3)
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>&nbsp;
<HR></CENTER>

<H2>
MIDI CONVERTERS</H2>

<PRE>&nbsp;&nbsp; ival&nbsp;&nbsp;&nbsp; <B>notnum</B>&nbsp;&nbsp;
&nbsp;&nbsp; ival&nbsp;&nbsp;&nbsp; <B>veloc</B>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; icps&nbsp;&nbsp;&nbsp; <B>cpsmidi</B>&nbsp;
&nbsp;&nbsp; icps&nbsp;&nbsp;&nbsp; <B>cpsmidib
</B>&nbsp;&nbsp; kcps&nbsp;&nbsp;&nbsp; <B>cpsmidib</B>&nbsp;&nbsp;&nbsp;&nbsp; [irange]&nbsp;
&nbsp;&nbsp; ioct&nbsp;&nbsp;&nbsp; <B>octmidi</B>&nbsp;
&nbsp;&nbsp; ioct&nbsp;&nbsp;&nbsp; <B>octmidib
</B>&nbsp;&nbsp; koct&nbsp;&nbsp;&nbsp; <B>octmidib</B>&nbsp;&nbsp;&nbsp;&nbsp; [irange]
&nbsp;&nbsp; ipch&nbsp;&nbsp;&nbsp; <B>pchmidi</B>&nbsp;
&nbsp;&nbsp; ipch&nbsp;&nbsp;&nbsp; <B>pchmidib
</B>&nbsp;&nbsp; kpch&nbsp;&nbsp;&nbsp; <B>pchmidib</B>&nbsp;&nbsp;&nbsp;&nbsp; [irange]&nbsp;
&nbsp;&nbsp; iamp&nbsp;&nbsp;&nbsp; <B>ampmidi</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iscal[, ifn]
&nbsp;&nbsp; kaft&nbsp;&nbsp;&nbsp; <B>aftouch</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iscal&nbsp;
&nbsp;&nbsp; kchpr&nbsp;&nbsp; <B>chpress</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iscal
&nbsp;&nbsp; kbend&nbsp;&nbsp; <B>pchbend</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iscal&nbsp;
&nbsp;&nbsp; ival&nbsp;&nbsp;&nbsp; <B>midictrl</B>&nbsp;&nbsp;&nbsp;&nbsp; inum[, initial]
&nbsp;&nbsp; kval&nbsp;&nbsp;&nbsp; <B>midictrl</B>&nbsp;&nbsp;&nbsp;&nbsp; inum[, initial]&nbsp;
&nbsp;&nbsp; kval&nbsp;&nbsp;&nbsp; <B>midictrlsc</B>&nbsp;&nbsp; inum[, iscal][, ioffset][, initial]
&nbsp;&nbsp; ival&nbsp;&nbsp;&nbsp; <B>chanctrl</B>&nbsp;&nbsp;&nbsp;&nbsp; ichnl, ictlno[,ilow,ihigh]
&nbsp;&nbsp; kval&nbsp;&nbsp;&nbsp; <B>chanctrl</B>&nbsp;&nbsp;&nbsp;&nbsp; ichnl, ictlno[,ilow,ihigh]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <B>ctrlinit</B>&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp; - Get the current value of a controller and optionally
map it onto specified range.&nbsp; <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>&nbsp;
<HR></CENTER>

<CENTER></CENTER>

<CENTER><B><I><FONT COLOR="#006600">HTML Csound Manual - <FONT SIZE=-1>&copy;
Jean Pich&eacute; &amp; Peter J. Nix, 1994-97</FONT></FONT></I></B></CENTER>

</BODY>
</HTML>