Debian Codegraph @

opcodes/outipc.xml

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