Debian Codegraph @

opcodes/subinstr.xml

raw symbols SCIP
1
2 <refentry id="subinstr">
3 <indexterm id="IndexSubinstr"><primary>subinstr</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Subinstrument Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>subinstr</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>subinstr</refname>
13 <refpurpose>
14 Creates and runs a numbered instrument instance.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Creates an instance of another instrument and is used as if it were an opcode.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>a1, [...] [, a8] <command>subinstr</command> instrnum [, p4] [, p5] [...]</synopsis>
28 <synopsis>a1, [...] [, a8] <command>subinstr</command> &quot;insname&quot; [, p4] [, p5] [...]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>instrnum</emphasis> -- Number of the instrument to be called.
35 </para>
36
37 <para>
38 <emphasis><quote>insname</quote></emphasis> -- A string (in double-quotes) representing a named instrument.
39 </para>
40
41 </refsect1>
42
43 <refsect1>
44 <title>Performance</title>
45 <para>
46 <emphasis>a1, ..., a8</emphasis> -- The audio output from the called instrument. This is generated using the <link linkend="SigioOutput"><citetitle>signal output</citetitle></link> opcodes.
47 </para>
48
49 <para>
50 <emphasis>p4, p5, ...</emphasis> -- Additional input values the are mapped to the called instrument p-fields, starting with p4.
51 </para>
52
53 <para>
54 The called instrument's p2 and p3 values will be identical to the host instrument's values. While the host instrument can <link linkend="ControlDurctl"><citetitle>control its own duration</citetitle></link>, any such attempts inside the called instrument will most likely have no effect.
55 </para>
56 </refsect1>
57
58 <refsect1>
59 <title>See Also</title>
60 <para>
61 <link linkend="event"><citetitle>event</citetitle></link>,
62 <link linkend="schedule"><citetitle>schedule</citetitle></link>,
63 <link linkend="subinstrinit"><citetitle>subinstrinit</citetitle></link>
64 </para>
65 </refsect1>
66
67 <refsect1>
68 <title>Examples</title>
69 <para>
70 Here is an example of the subinstr opcode. It uses the file <ulink url="examples/subinstr.csd"><citetitle>subinstr.csd</citetitle></ulink>.
71
72 <example>
73 <title>Example of the subinstr opcode.</title>
74
75
76
77 <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>
78 <xi:include href="examples-xml/subinstr.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
79 </example>
80 </para>
81
82 <para>
83 Here is an example of the subinstr opcode using a named instrument. It uses the file <ulink url="examples/subinstr_named.csd"><citetitle>subinstr_named.csd</citetitle></ulink>.
84
85 <example>
86 <title>Example of the subinstr opcode using a named instrument.</title>
87
88 <xi:include href="examples-xml/subinstr_named.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
89 </example>
90 </para>
91 </refsect1>
92
93 <refsect1>
94 <title>See also</title>
95 <para><link linkend="ControlSubinstrument"><citetitle>Sub-instrument Control</citetitle></link></para>
96 </refsect1>
97
98 <refsect1>
99 <title>Credits</title>
100 <para>New in version 4.21</para>
101 </refsect1>
102 </refentry>