Debian Codegraph @

opcodes/noteon.xml

raw symbols SCIP
1
2 <refentry id="noteon">
3 <indexterm id="IndexNoteon"><primary>noteon</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Note Output</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>noteon</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>noteon</refname>
13
14 <refpurpose>
15 Send a noteon message to the MIDI OUT port.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Send a noteon message to the MIDI OUT port.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>noteon</command> ichn, inum, ivel</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>inum</emphasis> -- note number (0-127)
39 </para>
40
41 <para>
42 <emphasis>ivel</emphasis> -- velocity (0-127)
43 </para>
44 </refsect1>
45
46 <refsect1>
47 <title>Performance</title>
48 <para>
49 <emphasis>noteon</emphasis> (i-rate note on) and <emphasis>noteoff</emphasis> (i-rate note off) are the simplest MIDI OUT opcodes. <emphasis>noteon</emphasis> sends a MIDI noteon message to MIDI OUT port, and <emphasis>noteoff</emphasis> sends a noteoff message. A <emphasis>noteon</emphasis> opcode must always be followed by an <emphasis>noteoff</emphasis> with the same channel and number inside the same instrument, otherwise the note will play endlessly.
50 </para>
51
52 <para>
53 These <emphasis>noteon</emphasis> and <emphasis>noteoff</emphasis> opcodes are useful only when introducing a <link linkend="timout"><citetitle>timout</citetitle></link> statement to play a non-zero duration MIDI note. For most purposes, it is better to use <link linkend="noteondur"><citetitle>noteondur</citetitle></link> and <link linkend="noteondur2"><citetitle>noteondur2</citetitle></link>.
54 </para>
55 </refsect1>
56
57 <refsect1>
58 <title>See also</title>
59 <para><link linkend="MidiOnoff"><citetitle>Note-on/Note-off Output</citetitle></link></para>
60 </refsect1>
61
62 <refsect1>
63 <title>Credits</title>
64 <para>
65 <simplelist>
66 <member>Author: &namegabriel;</member>
67 <member>Italy</member>
68 </simplelist>
69 </para>
70
71 <para>New in Csound version 3.47</para>
72 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
73 </refsect1>
74 </refentry>