Debian Codegraph @

opcodes/ctrlinit.xml

raw symbols SCIP
1
2 <refentry id="ctrlinit">
3 <indexterm id="IndexCtrlinit"><primary>ctrlinit</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Input</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>ctrlinit</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>ctrlinit</refname>
13
14 <refpurpose>
15 Sets the initial values for a set of MIDI controllers.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Sets the initial values for a set of MIDI controllers.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>ctrlinit</command> ichnl, ictlno1, ival1 [, ictlno2] [, ival2] [, ictlno3] \
29 [, ival3] [,...ival32]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>ichnl</emphasis> -- MIDI channel number (1-16)
36 </para>
37
38 <para>
39 <emphasis>ictlno1</emphasis>, <emphasis>ictlno1</emphasis>, etc. -- MIDI controller numbers (0-127)
40 </para>
41
42 <para>
43 <emphasis>ival1</emphasis>, <emphasis>ival2</emphasis>, etc. --
44 initial value for corresponding MIDI controller number, in the
45 range 0 to 127.
46 </para>
47 <note><para>If this opcode is to be used with a scaling opcode such as
48 ctrl7 the ival1.. should be 127*(initial-min)/(max-min)</para></note>
49 </refsect1>
50
51 <refsect1>
52 <title>Performance</title>
53 <para>
54 Sets the initial values for a set of MIDI controllers.
55 </para>
56 </refsect1>
57
58 <refsect1>
59 <title>Examples</title>
60 <para>
61 Here is an example of the ctrlinit opcode. It uses the file <ulink url="examples/ctrlinit.csd"><citetitle>ctrlinit.csd</citetitle></ulink>.
62 <example>
63 <title>Example of the ctrlinit opcode.</title>
64 <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>
65 <xi:include href="examples-xml/ctrlinit.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
66 </example>
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>See also</title>
72 <para><link linkend="MidiInput"><citetitle>MIDI input and Initialization</citetitle></link></para>
73 <para><link linkend="OrchHeader"><citetitle>Orchestra Header Statements</citetitle></link></para>
74 </refsect1>
75
76 <refsect1>
77 <title>Credits</title>
78 <para>
79 <simplelist>
80 <member>Author: &namebarry; - &namemike;</member>
81 <member>MIT, Cambridge, Mass.</member>
82 </simplelist>
83 </para>
84
85 <para>New in Csound version 3.47</para>
86 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
87 </refsect1>
88 </refentry>