Debian Codegraph @

opcodes/goto.xml

raw symbols SCIP
1
2 <refentry id="goto">
3 <indexterm id="IndexGoto"><primary>goto</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Program Flow Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>goto</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>goto</refname>
11 <refpurpose>
12 Transfer control on every pass.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Transfer control to <emphasis>label</emphasis> on every pass. (Combination of <link linkend="igoto"><citetitle>igoto</citetitle></link> and <link linkend="kgoto"><citetitle>kgoto</citetitle></link>)
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>goto</command> label</synopsis>
26
27 <para>
28 where <emphasis>label</emphasis> is in the same instrument block and is not an expression.
29 </para>
30 <note>
31 Using <emphasis>goto</emphasis> not as part of an <link linkend="if"><citetitle>if</citetitle></link> statement (as in: goto end), will cause initialization to be skipped on all the code the <emphasis>goto</emphasis> jumps over. In performance, leaving some opcodes uninitialized will cause deletion of the note/event. In these cases, using <link linkend="kgoto"><citetitle>kgoto</citetitle></link> (as in: kgoto end) might be preferred."
32 </note>
33 </refsect1>
34
35 <refsect1>
36 <title>Examples</title>
37 <para>
38 Here is an example of the goto opcode. It uses the file <ulink url="examples/goto.csd"><citetitle>goto.csd</citetitle></ulink>.
39
40 <example>
41 <title>Example of the goto opcode.</title>
42 <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>
43 <xi:include href="examples-xml/goto.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
44 </example>
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>See also</title>
50 <para><link linkend="ControlPgmctl"><citetitle>Program Flow Control</citetitle></link></para>
51 </refsect1>
52
53 <refsect1>
54 <title>Credits</title>
55 <para>Example written by &namekevin;.</para>
56 <para>Added a note by Jim Aikin.</para>
57 </refsect1>
58 </refentry>