Debian Codegraph @

opcodes/midic14.xml

raw symbols SCIP
1
2 <refentry id="midic14">
3 <indexterm id="IndexMidic14"><primary>midic14</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Input</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>midic14</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>midic14</refname>
13
14 <refpurpose>
15 Allows a floating-point 14-bit MIDI signal scaled with a minimum and a maximum range.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Allows a floating-point 14-bit MIDI signal scaled with a minimum and a maximum range.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>idest <command>midic14</command> ictlno1, ictlno2, imin, imax [, ifn]</synopsis>
29
30 <synopsis>kdest <command>midic14</command> ictlno1, ictlno2, kmin, kmax [, ifn]</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>idest</emphasis> -- output signal
37 </para>
38
39 <para>
40 <emphasis>ictln1o</emphasis> -- most-significant byte controller number (0-127)
41 </para>
42
43 <para>
44 <emphasis>ictlno2</emphasis> -- least-significant byte controller number (0-127)
45 </para>
46
47 <para>
48 <emphasis>imin</emphasis> -- user-defined minimum floating-point value of output
49 </para>
50
51 <para>
52 <emphasis>imax</emphasis> -- user-defined maximum floating-point value of output
53 </para>
54
55 <para>
56 <emphasis>ifn</emphasis> (optional) -- table to be read when indexing is required. Table must be normalized. Output is scaled according to <emphasis>imin</emphasis> and <emphasis>imax</emphasis> values.
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Performance</title>
62 <para>
63 <emphasis>kdest</emphasis> -- output signal
64 </para>
65
66 <para>
67 <emphasis>kmin</emphasis> -- user-defined minimum floating-point value of output
68 </para>
69
70 <para>
71 <emphasis>kmax</emphasis> -- user-defined maximum floating-point value of output
72 </para>
73
74 <para>
75 <emphasis>midic14</emphasis> (i- and k-rate 14 bit MIDI control) allows a floating-point 14-bit MIDI signal scaled with a minimum and a maximum range. The minimum and maximum values can be varied at k-rate. It can use optional interpolated table indexing. It requires two MIDI controllers as input.
76 </para>
77 <note>
78 <para>Please note that the <emphasis>midic</emphasis> family of
79 opcodes are designed for MIDI triggered events, and do not require a channel number since they will respond to the same channel as the one that triggered the instrument (see <link linkend="massign"><citetitle>massign</citetitle></link>). However they will crash if called from a score driven event.</para>
80 </note>
81 </refsect1>
82
83 <refsect1>
84 <title>Examples</title>
85 <para>
86 Here is an example of the midic14 opcode. It uses the file <ulink url="examples/midic14.csd"><citetitle>midic14.csd</citetitle></ulink>.
87
88 <example>
89 <title>Example of the midic14 opcode.</title>
90 <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>
91 <xi:include href="examples-xml/midic14.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
92 </example>
93 </para>
94 </refsect1>
95
96 <refsect1>
97 <title>See also</title>
98 <para><link linkend="MidiInput"><citetitle>MIDI input and Initialization</citetitle></link></para>
99 </refsect1>
100
101 <refsect1>
102 <title>Credits</title>
103 <para>
104 <simplelist>
105 <member>Author: &namegabriel;</member>
106 <member>Italy</member>
107 </simplelist>
108 </para>
109
110 <para>New in Csound version 3.47</para>
111 <para>Thanks goes to &namerasmus; for pointing out the correct controller number range.</para>
112 </refsect1>
113 </refentry>