Debian Codegraph @

opcodes/midion2.xml

raw symbols SCIP
1
2 <refentry id="midion2">
3 <indexterm id="IndexMidion2"><primary>midion2</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Note Output</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>midion2</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>midion2</refname>
13
14 <refpurpose>
15 Sends noteon and noteoff messages to the MIDI OUT port.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Sends noteon and noteoff messages to the MIDI OUT port when triggered by a value different than zero.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>midion2</command> kchn, knum, kvel, ktrig</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Performance</title>
33 <para>
34 <emphasis>kchn</emphasis> -- MIDI channel (1-16)
35 </para>
36
37 <para>
38 <emphasis>knum</emphasis> -- MIDI note number (0-127)
39 </para>
40
41 <para>
42 <emphasis>kvel</emphasis> -- note velocity (0-127)
43 </para>
44
45 <para>
46 <emphasis>ktrig</emphasis> -- trigger input signal (normally 0)
47 </para>
48
49 <para>
50 Similar to <link linkend="midion"><citetitle>midion</citetitle></link>, this opcode sends noteon and noteoff messages to the MIDI out port, but only when <emphasis>ktrig</emphasis> is non-zero. This opcode is can work together with the output of the <link linkend="trigger"><citetitle>trigger</citetitle></link> opcode.
51 </para>
52 </refsect1>
53
54
55 <refsect1>
56 <title>Examples</title>
57 <para>
58 Here is an example of the midion2 opcode. It uses the file <ulink url="examples/midion2.csd"><citetitle>midion2.csd</citetitle></ulink>.
59
60 <example>
61 <title>Example of the midion2 opcode.</title>
62
63 <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>
64 <xi:include href="examples-xml/midion2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
65 </example>
66 </para>
67 </refsect1>
68
69 <refsect1>
70 <title>See also</title>
71 <para><link linkend="MidiOnoff"><citetitle>Note-on/Note-off Output</citetitle></link></para>
72 </refsect1>
73
74 <refsect1>
75 <title>Credits</title>
76 <para>
77 <simplelist>
78 <member>Author: &namegabriel;</member>
79 <member>Italy</member>
80 <member>1998</member>
81 </simplelist>
82 </para>
83
84 <para>New in Csound version 3.492</para>
85 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
86 </refsect1>
87 </refentry>