Debian Codegraph @

opcodes/nstrnum.xml

raw symbols SCIP
1
2 <refentry id="nstrnum">
3 <indexterm id="IndexNstrnum"><primary>nstrnum</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Initialization and Reinitialization</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>nstrnum</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>nstrnum</refname>
13 <refpurpose>
14 Returns the number of a named instrument.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Returns the number of a named instrument.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>insno <command>nstrnum</command> &quot;name&quot;</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>insno</emphasis> -- the instrument number of the named instrument.
34 </para>
35 </refsect1>
36
37 <refsect1>
38 <title>Performance</title>
39 <para>
40 <emphasis>&quot;name&quot;</emphasis> -- the named instrument's name.
41 </para>
42
43 <para>
44 If an instrument with the specified name does not exist, an init error occurs, and -1 is returned.
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Examples</title>
50 <para>
51 Here is an example of the nstrnum opcode. It uses the file <ulink url="examples/nstrnum_nstrstr.csd"><citetitle>nstrnum_nstrstr.csd</citetitle></ulink>.
52 <example>
53 <title>Example of the nstrnum opcode.</title>
54 <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>
55 <xi:include href="examples-xml/nstrnum_nstrstr.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
56 </example>
57 <para>
58 A musical examples featuring the nstrnum opcode: <ulink url="examples/musical/TivalNstrnum_Yi.csd"><citetitle>TivalNstrnum_Yi.csd</citetitle></ulink> by Steven Yi.
59 </para>
60 </para>
61
62 <para>
63 The example will produce the following output:
64 <screen>
65 instrument name = john
66 instrument number = 2
67 </screen>
68 </para>
69
70 </refsect1>
71
72 <refsect1>
73 <title>See also</title>
74 <para><link linkend="ControlReinitn"><citetitle>Initialization and Reinitialization</citetitle></link></para>
75 </refsect1>
76
77 <refsect1>
78 <title>Credits</title>
79 <para>
80 <simplelist>
81 <member>Author: &nameistvan;</member>
82 <member>New in version 4.23</member>
83 <member>Written in the year 2002.</member>
84 </simplelist>
85 </para>
86 </refsect1>
87 </refentry>