Debian Codegraph @

opcodes/nrpn.xml

raw symbols SCIP
1
2 <refentry id="nrpn">
3 <indexterm id="IndexNrpn"><primary>nrpn</primary></indexterm>
4 <refentryinfo><title>Real-time MIDI:Output</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>nrpn</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>nrpn</refname>
13
14 <refpurpose>
15 Sends a Non-Registered Parameter Number to the MIDI OUT port.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Sends a NPRN (Non-Registered Parameter Number) message to the MIDI OUT port each time one of the input arguments changes.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>nrpn</command> kchan, kparmnum, kparmvalue</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Performance</title>
33 <para>
34 <emphasis>kchan</emphasis> -- MIDI channel (1-16)
35 </para>
36
37 <para>
38 <emphasis>kparmnum</emphasis> -- number of NRPN parameter
39 </para>
40
41 <para>
42 <emphasis>kparmvalue</emphasis> -- value of NRPN parameter
43 </para>
44
45 <para>
46 This opcode sends new message when the MIDI translated value of one of the input arguments changes. It operates at k-rate. Useful with the MIDI instruments that recognize NRPNs (for example with the newest sound-cards with internal MIDI synthesizer such as SB AWE32, AWE64, GUS etc. in which each patch parameter can be changed during the performance via NRPN)
47 </para>
48 </refsect1>
49
50 <refsect1>
51 <title>Examples</title>
52 <para>
53 Here is an example of the nrpn opcode. It uses the file <ulink url="examples/nrpn.csd"><citetitle>nrpn.csd</citetitle></ulink>.
54 <example>
55 <title>Example of the nrpn opcode.</title>
56 <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>
57 <para>This example generates notes for every note received on the MIDI input. It generates MIDI notes on csound's MIDI output, so be sure to connect something.</para>
58 <xi:include href="examples-xml/nrpn.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
59 </example>
60 </para>
61 </refsect1>
62
63 <refsect1>
64 <title>See also</title>
65 <para><link linkend="MidiOutput"><citetitle>MIDI Message Output</citetitle></link></para>
66 </refsect1>
67
68 <refsect1>
69 <title>Credits</title>
70 <para>
71 <simplelist>
72 <member>Author: &namegabriel;</member>
73 <member>Italy</member>
74 <member>1998</member>
75 </simplelist>
76 </para>
77
78 <para>New in Csound version 3.492</para>
79 <para>Thanks goes to &namerasmus; for pointing out the correct MIDI channel and controller number ranges.</para>
80 </refsect1>
81 </refentry>