Debian Codegraph @

opcodes/subinstrinit.xml

raw symbols SCIP
1
2 <refentry id="subinstrinit">
3 <indexterm id="IndexSubinstrinit"><primary>subinstrinit</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Subinstrument Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>subinstrinit</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>subinstrinit</refname>
13 <refpurpose>
14 Creates and runs a numbered instrument instance at init-time.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Same as <link linkend="subinstr"><citetitle>subinstr</citetitle></link>, but init-time only and has no output arguments.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>subinstrinit</command> instrnum [, p4] [, p5] [...]</synopsis>
28 <synopsis><command>subinstrinit</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 <para>
42 <emphasis>p4, p5, ...</emphasis> -- Additional input values the are mapped to the called instrument p-fields, starting with p4.
43 </para>
44
45 <para>
46 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.
47 </para>
48 </refsect1>
49
50 <refsect1>
51 <title>Examples</title>
52 <para>
53 Here is an example of the subinstrinit opcode. It uses the file <ulink url="examples/subinstrinit.csd"><citetitle>subinstrinit.csd</citetitle></ulink>.
54 <example>
55 <title>Example of the subinstrinit 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 <xi:include href="examples-xml/subinstrinit.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
58 </example>
59 Its output should include lines like this:
60 <screen>
61 instr. 2 playing
62 B 0.000 .. 2.000 T 2.000 TT 2.000 M: 0.00000 0.00000
63 instr. 3 playing
64 B 2.000 .. 4.000 T 4.000 TT 4.000 M: 0.00000 0.00000
65 instr. 4 playing
66 B 4.000 .. 6.000 T 6.000 TT 6.000 M: 0.00000 0.00000
67 .........</screen>
68 </para>
69 </refsect1>
70
71 <refsect1>
72 <title>See also</title>
73 <para><link linkend="ControlSubinstrument"><citetitle>Sub-instrument Control</citetitle></link></para>
74 </refsect1>
75
76 <refsect1>
77 <title>Credits</title>
78 <para>New in version 4.23</para>
79 </refsect1>
80 </refentry>