Debian Codegraph @

opcodes/outkpb.xml

raw symbols SCIP
1
2 <refentry id="outkpb">
3 <indexterm id="IndexOutkpb"><primary>outkpb</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Output</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>outkpb</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>outkpb</refname>
13
14 <refpurpose>
15 Sends MIDI pitch-bend messages at k-rate.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Sends MIDI pitch-bend messages at k-rate.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>outkpb</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 (7 bit))
47 </para>
48
49 <para>
50 <emphasis>outkpb</emphasis> (k-rate pitch-bend output) sends pitch-bend 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.
55 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.
56 </para>
57 </refsect1>
58
59 <refsect1>
60 <title>Examples</title>
61 <para>
62 Here is an example of the outkpb opcode. It uses the file <ulink url="examples/outkpb.csd"><citetitle>outkpb.csd</citetitle></ulink>.
63 <example>
64 <title>Example of the outkpb opcode.</title>
65 <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>
66 <xi:include href="examples-xml/outkpb.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
67 </example>
68 </para>
69 </refsect1>
70
71 <refsect1>
72 <title>See also</title>
73 <para><link linkend="MidiOutput"><citetitle>MIDI Message Output</citetitle></link></para>
74 </refsect1>
75
76 <refsect1>
77 <title>Credits</title>
78 <para>
79 <simplelist>
80 <member>Author: &namegabriel;</member>
81 <member>Italy</member>
82 </simplelist>
83 </para>
84
85 <para>New in Csound version 3.47</para>
86 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
87 </refsect1>
88 </refentry>