Debian Codegraph @

opcodes/strset.xml

raw symbols SCIP
1
2 <refentry id="strset">
3 <indexterm id="IndexStrset"><primary>strset</primary></indexterm>
4 <refentryinfo><title>Strings:Definition</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>strset</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>strset</refname>
11
12 <refpurpose>
13 Allows a string to be linked with a numeric value.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Allows a string to be linked with a numeric value.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis><command>strset</command> iarg, istring</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>iarg</emphasis> -- the numeric value.
33 </para>
34 <para>
35 <emphasis>istring</emphasis> -- the alphanumeric string (in double-quotes).
36 </para>
37
38 <para>
39 <emphasis>strset</emphasis> (optional) allows a string, such as a filename, to be linked with a numeric value. Its use is optional.
40 </para>
41 </refsect1>
42
43 <refsect1>
44 <title>Examples</title>
45 <para>
46 The following statement, used in the orchestra header, will allow the numeric value 10 to be substituted anywhere the soundfile <emphasis>asound.wav</emphasis> is called for.
47
48 <informalexample>
49 <programlisting>
50 <command>strset</command> 10, &quot;asound.wav&quot;
51 </programlisting>
52 </informalexample>
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>Examples</title>
58 <para>
59 Here is an example of the strset opcode. It uses the file <ulink url="examples/strset.csd"><citetitle>strset.csd</citetitle></ulink>.
60
61 <example>
62 <title>Example of the strset opcode.</title>
63
64 <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>
65 <xi:include href="examples-xml/strset.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
66 </example>
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>See Also</title>
72 <para><link linkend="stringmanipulate"><citetitle></citetitle>String Manipulation Opcodes</link></para>
73 <para><link linkend="OrchHeader"><citetitle>Orchestra Header Statements</citetitle></link></para>
74 </refsect1>
75
76 </refentry>