| 1 |
|
| 2 |
<refentry id="cggoto"> |
| 3 |
<indexterm id="IndexCggoto"><primary>cggoto</primary></indexterm> |
| 4 |
<refentryinfo><title>Instrument Control:Program Flow Control</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>cggoto</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>cggoto</refname> |
| 11 |
<refpurpose> |
| 12 |
Conditionally 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="cigoto"><citetitle>cigoto</citetitle></link> and <link linkend="ckgoto"><citetitle>ckgoto</citetitle></link>) |
| 20 |
</para> |
| 21 |
</refsect1> |
| 22 |
|
| 23 |
<refsect1> |
| 24 |
<title>Syntax</title> |
| 25 |
<synopsis><command>cggoto</command> condition, label</synopsis> |
| 26 |
|
| 27 |
<para> |
| 28 |
where <emphasis>label</emphasis> is in the same instrument block and is not an expression, and where <emphasis>condition</emphasis> uses one of the Relational operators (<emphasis><</emphasis>,<emphasis> =</emphasis>, <emphasis><=</emphasis>, <emphasis>==</emphasis>, <emphasis>!=</emphasis>) (and <emphasis>=</emphasis> for convenience, see also under <link linkend="ControlConditional"><citetitle>Conditional Values</citetitle></link>). |
| 29 |
</para> |
| 30 |
</refsect1> |
| 31 |
|
| 32 |
<refsect1> |
| 33 |
<title>Examples</title> |
| 34 |
<para> |
| 35 |
Here is an example of the cggoto opcode. It uses the file <ulink url="examples/cggoto.csd"><citetitle>cggoto.csd</citetitle></ulink>. |
| 36 |
|
| 37 |
<example> |
| 38 |
<title>Example of the cggoto opcode.</title> |
| 39 |
<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> |
| 40 |
<xi:include href="examples-xml/cggoto.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 41 |
</example> |
| 42 |
</para> |
| 43 |
</refsect1> |
| 44 |
|
| 45 |
<refsect1> |
| 46 |
<title>See also</title> |
| 47 |
<para><link linkend="ControlPgmctl"><citetitle>Program Flow Control</citetitle></link></para> |
| 48 |
</refsect1> |
| 49 |
|
| 50 |
<refsect1> |
| 51 |
<title>Credits</title> |
| 52 |
|
| 53 |
<para>Example written by &namekevin;.</para> |
| 54 |
</refsect1> |
| 55 |
</refentry> |