Debian Codegraph @

opcodes/cpsmidi.xml

raw symbols SCIP
1
2 <refentry id="cpsmidi">
3 <indexterm id="IndexCpsmidi"><primary>cpsmidi</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Converters</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>cpsmidi</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>cpsmidi</refname>
11
12 <refpurpose>
13 Get the note number of the current MIDI event, expressed in cycles-per-second.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Get the note number of the current MIDI event, expressed in cycles-per-second.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>icps <command>cpsmidi</command></synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Performance</title>
31 <para>
32 Get the note number of the current MIDI event, expressed in cycles-per-second units, for local processing.
33 </para>
34
35 <note>
36 <title>cpsmidi vs. cpsmidinn</title>
37 <para>
38 The <emphasis>cpsmidi</emphasis> opcode only produces meaningful results in a Midi-activated note (either real-time or from a Midi score with the -F flag). With <emphasis>cpsmidi</emphasis>, the Midi note number value is taken from the Midi event that is internally associated with the instrument instance. On the other hand, the <emphasis>cpsmidinn</emphasis> opcode may be used in any Csound instrument instance whether it is activated from a Midi event, score event, line event, or from another instrument. The input value for <emphasis>cpsmidinn</emphasis> might for example come from a p-field in a textual score or it may have been retrieved from the real-time Midi event that activated the current note using the <emphasis>notnum</emphasis> opcode.
39 </para>
40 </note>
41 </refsect1>
42
43 <refsect1>
44 <title>Examples</title>
45 <para>
46 Here is an example of the cpsmidi opcode. It uses the file <ulink url="examples/cpsmidi.csd"><citetitle>cpsmidi.csd</citetitle></ulink>.
47
48 <example>
49 <title>Example of the cpsmidi opcode.</title>
50 <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>
51 <xi:include href="examples-xml/cpsmidi.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
52 </example>
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>See also</title>
58 <para><link linkend="MidiConvert"><citetitle>Midi Converters</citetitle></link></para>
59 </refsect1>
60
61 <refsect1>
62 <title>Credits</title>
63 <para>
64 <simplelist>
65 <member>Author: &namebarry; - &namemike;</member>
66 <member>MIT - Mills</member>
67 <member>May 1997</member>
68 </simplelist>
69 </para>
70 </refsect1>
71 </refentry>