Debian Codegraph @

opcodes/initc21.xml

raw symbols SCIP
1
2 <refentry id="initc21">
3 <indexterm id="IndexInitc21"><primary>initc21</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Input</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>initc21</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>initc21</refname>
13
14 <refpurpose>
15 Initializes the controllers used to create a 21-bit MIDI value.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Initializes the controllers used to create a 21-bit MIDI value.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>initc21</command> ichan, ictlno1, ictlno2, ictlno3, ivalue</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>ichan</emphasis> -- MIDI channel (1-16)
35 </para>
36
37 <para>
38 <emphasis>ictlno1</emphasis> -- most significant byte controller number (0-127)
39 </para>
40
41 <para>
42 <emphasis>ictlno2</emphasis> -- medium significant byte controller number (0-127)
43 </para>
44
45 <para>
46 <emphasis>ictlno3</emphasis> -- least significant byte controller number (0-127)
47 </para>
48
49 <para>
50 <emphasis>ivalue</emphasis> -- floating point value (must be within 0 to 1)
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>Performance</title>
56 <para>
57 <emphasis>initc21</emphasis> can be used together with both <link linkend="midic21"><citetitle>midic21</citetitle></link> and <link linkend="ctrl21"><citetitle>ctrl21</citetitle></link> opcodes for initializing the first controller's value. <emphasis>ivalue</emphasis> argument must be set with a number within 0 to 1. An error occurs if it is not. Use the following formula to set <emphasis>ivalue</emphasis> according with <emphasis>midic21</emphasis> and <emphasis>ctrl21</emphasis> min and max range:
58
59 <literallayout>
60 ivalue = (initial_value - min) / (max - min)
61 </literallayout>
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>See also</title>
67 <para><link linkend="MidiInput"><citetitle>MIDI input and Initialization</citetitle></link></para>
68 </refsect1>
69
70 <refsect1>
71 <title>Credits</title>
72 <para>
73 <simplelist>
74 <member>Author: &namegabriel;</member>
75 <member>Italy</member>
76 </simplelist>
77 </para>
78
79 <para>New in Csound version 3.47</para>
80 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
81 </refsect1>
82 </refentry>