Debian Codegraph @

opcodes/outkc.xml

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