Debian Codegraph @

opcodes/chanctrl.xml

raw symbols SCIP
1
2 <refentry id="chanctrl">
3 <indexterm id="IndexChanctrl"><primary>chanctrl</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Input</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>chanctrl</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>chanctrl</refname>
13
14 <refpurpose>
15 Get the current value of a MIDI channel controller.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Get the current value of a controller and optionally map it onto specified range.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>ival <command>chanctrl</command> ichnl, ictlno [, ilow] [, ihigh]</synopsis>
29
30 <synopsis>kval <command>chanctrl</command> ichnl, ictlno [, ilow] [, ihigh]</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>ichnl</emphasis> -- the MIDI channel (1-16).
37 </para>
38
39 <para>
40 <emphasis>ictlno</emphasis> -- the MIDI controller number (0-127).
41 </para>
42
43 <para>
44 <emphasis>ilow</emphasis>, <emphasis>ihigh</emphasis> -- low and high ranges for mapping
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Examples</title>
50 <para>
51 Here is an example of the chanctrl opcode. It uses the file <ulink url="examples/chanctrl.csd"><citetitle>chanctrl.csd</citetitle></ulink>.
52
53 <example>
54 <title>Example of the chanctrl opcode.</title>
55
56
57
58 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
59 <xi:include href="examples-xml/chanctrl.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
60 </example>
61 </para>
62 </refsect1>
63
64 <refsect1>
65 <title>See also</title>
66 <para><link linkend="MidiInput"><citetitle>MIDI input and Initialization</citetitle></link></para>
67 </refsect1>
68
69 <refsect1>
70 <title>Credits</title>
71 <para>
72 <simplelist>
73 <member>Author: &namemike;</member>
74 <member>Mills College</member>
75 <member>May, 1997</member>
76 </simplelist>
77 </para>
78
79 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
80 </refsect1>
81 </refentry>