| 1 |
|
| 2 |
<refentry id="kgoto"> |
| 3 |
<indexterm id="IndexKgoto"><primary>kgoto</primary></indexterm> |
| 4 |
<refentryinfo><title>Instrument Control:Program Flow Control</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>kgoto</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>kgoto</refname> |
| 11 |
|
| 12 |
<refpurpose> |
| 13 |
Transfer control during the performance-time passes. |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
|
| 20 |
<para> |
| 21 |
During the p-time passes only, unconditionally transfer control to the statement labeled by <emphasis>label</emphasis>. |
| 22 |
</para> |
| 23 |
</refsect1> |
| 24 |
|
| 25 |
<refsect1> |
| 26 |
<title>Syntax</title> |
| 27 |
<synopsis><command>kgoto</command> label</synopsis> |
| 28 |
|
| 29 |
<para> |
| 30 |
where <emphasis>label</emphasis> is in the same instrument block and is not an expression. |
| 31 |
</para> |
| 32 |
</refsect1> |
| 33 |
|
| 34 |
<refsect1> |
| 35 |
<title>Examples</title> |
| 36 |
<para> |
| 37 |
Here is an example of the kgoto opcode. It uses the file <ulink url="examples/kgoto.csd"><citetitle>kgoto.csd</citetitle></ulink>. |
| 38 |
|
| 39 |
<example> |
| 40 |
<title>Example of the kgoto opcode.</title> |
| 41 |
<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> |
| 42 |
<xi:include href="examples-xml/kgoto.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 43 |
</example> |
| 44 |
|
| 45 |
Its output should include lines like this: |
| 46 |
<screen> |
| 47 |
kval = 0.000000, kfreq = 440.000000 |
| 48 |
kval = 0.999732, kfreq = 440.000000 |
| 49 |
kval = 1.999639, kfreq = 880.000000</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 |
<para>Example written by &namekevin;.</para> |
| 61 |
|
| 62 |
</refsect1> |
| 63 |
</refentry> |