Debian Codegraph @

opcodes/outkat.xml

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