| 1 |
|
| 2 |
<refentry id="cigoto"> |
| 3 |
<indexterm id="IndexCigoto"><primary>cigoto</primary></indexterm> |
| 4 |
<refentryinfo><title>Instrument Control:Program Flow Control</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>cigoto</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>cigoto</refname> |
| 11 |
|
| 12 |
<refpurpose> |
| 13 |
Conditionally transfer control during the i-time pass. |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para> |
| 20 |
During the i-time pass only, conditionally transfer control to the statement labeled by <emphasis>label</emphasis>. |
| 21 |
</para> |
| 22 |
</refsect1> |
| 23 |
|
| 24 |
<refsect1> |
| 25 |
<title>Syntax</title> |
| 26 |
<synopsis><command>cigoto</command> condition, label</synopsis> |
| 27 |
|
| 28 |
<para> |
| 29 |
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>). |
| 30 |
</para> |
| 31 |
</refsect1> |
| 32 |
|
| 33 |
<refsect1> |
| 34 |
<title>Examples</title> |
| 35 |
<para> |
| 36 |
Here is an example of the cigoto opcode. It uses the file <ulink url="examples/cigoto.csd"><citetitle>cigoto.csd</citetitle></ulink>. |
| 37 |
|
| 38 |
<example> |
| 39 |
<title>Example of the cigoto opcode.</title> |
| 40 |
<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> |
| 41 |
<xi:include href="examples-xml/cigoto.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 42 |
</example> |
| 43 |
|
| 44 |
Its output should include lines like: |
| 45 |
<screen> |
| 46 |
instr 1: iparam = 0.000 |
| 47 |
instr 1: ifreq = 440.000 |
| 48 |
instr 1: iparam = 1.000 |
| 49 |
instr 1: ifreq = 880.000</screen> |
| 50 |
</para> |
| 51 |
</refsect1> |
| 52 |
|
| 53 |
<refsect1> |
| 54 |
<title>See also</title> |
| 55 |
<para><link linkend="ControlPgmctl"><citetitle>Program Flow Control</citetitle></link></para> |
| 56 |
</refsect1> |
| 57 |
|
| 58 |
<refsect1> |
| 59 |
<title>Credits</title> |
| 60 |
|
| 61 |
<para>Example written by &namekevin;.</para> |
| 62 |
</refsect1> |
| 63 |
</refentry> |