Debian Codegraph @

opcodes/outic.xml

raw symbols SCIP
1
2 <refentry id="outic">
3 <indexterm id="IndexOutic"><primary>outic</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Output</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>outic</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>outic</refname>
13
14 <refpurpose>
15 Sends MIDI controller output at i-rate.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Sends MIDI controller output at i-rate.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>outic</command> ichn, inum, ivalue, imin, imax</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>ichn</emphasis> -- MIDI channel number (1-16)
35 </para>
36
37 <para>
38 <emphasis>inum</emphasis> -- controller number (0-127 for example 1 = ModWheel; 2 = BreathControl etc.)
39 </para>
40
41 <para>
42 <emphasis>ivalue</emphasis> -- floating point value
43 </para>
44
45 <para>
46 <emphasis>imin</emphasis> -- minimum floating point value (converted in MIDI integer value 0)
47 </para>
48
49 <para>
50 <emphasis>imax</emphasis> -- maximum floating point value (converted in MIDI integer value 127 (7 bit))
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>Performance</title>
56 <para>
57 <emphasis>outic</emphasis> (i-rate MIDI controller output) sends controller messages to the MIDI OUT device. It works only with MIDI instruments which recognize them. It can drive a different value of a parameter for each note currently active.
58 </para>
59
60 <para>
61 It can scale an i-value floating-point argument according to the <emphasis>imin</emphasis> and <emphasis>imax</emphasis> values. For example, set <emphasis>imin</emphasis> = 1.0 and <emphasis>imax</emphasis> = 2.0. When the <emphasis>ivalue</emphasis> argument receives a 2.0 value, the opcode will send a 127 value to the MIDI OUT device. When the <emphasis>ivalue</emphasis> argument receives a 1.0 value, it will send a 0 value. i-rate opcodes send their message once during instrument initialization.
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>Examples</title>
67 <para>
68 Here is an example of the outic opcode. It uses the file <ulink url="examples/outic.csd"><citetitle>outic.csd</citetitle></ulink>.
69 <example>
70 <title>Example of the outic opcode.</title>
71 <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>
72 <xi:include href="examples-xml/outic.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
73 </example>
74 </para>
75 </refsect1>
76
77 <refsect1>
78 <title>See also</title>
79 <para><link linkend="MidiOutput"><citetitle>MIDI Message Output</citetitle></link></para>
80 </refsect1>
81
82 <refsect1>
83 <title>Credits</title>
84 <para>
85 <simplelist>
86 <member>Author: &namegabriel;</member>
87 <member>Italy</member>
88 </simplelist>
89 </para>
90
91 <para>New in Csound version 3.47</para>
92 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
93 </refsect1>
94 </refentry>