| 1 | |
| 2 | <refentry id="exitnow"> |
| 3 | <indexterm id="IndexExitnow"><primary>exitnow</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Realtime Performance Control</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>exitnow</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>exitnow</refname> |
| 11 | <refpurpose> |
| 12 | Exit Csound as fast as possible, with no cleaning up. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | In Csound4 calls an exit function to leave Csound as fast as |
| 20 | possible. On Csound5 and later it exits back to the driving code. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis><command>exitnow</command> [ivalue]</synopsis> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Initialisation</title> |
| 31 | <para> |
| 32 | Stops Csound on the <emphasis>initialisation</emphasis> cycle, |
| 33 | returning the result ivalue, which defaults to zero. Note that it |
| 34 | is usual for this opcode to be alone in an instrument. |
| 35 | </para> |
| 36 | </refsect1> |
| 37 | |
| 38 | <refsect1> |
| 39 | <title>Examples</title> |
| 40 | <para> |
| 41 | Here is an example of the exitnow opcode. It uses the file <ulink url="examples/exitnow.csd"><citetitle>exitnow.csd</citetitle></ulink>. |
| 42 | <example> |
| 43 | <title>Example of the exitnow opcode.</title> |
| 44 | <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> |
| 45 | <xi:include href="examples-xml/exitnow.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 46 | </example> |
| 47 | </para> |
| 48 | </refsect1> |
| 49 | |
| 50 | <refsect1> |
| 51 | <title>See also</title> |
| 52 | <para><link linkend="ControlRealtime"><citetitle>Real-time Performance Control</citetitle></link></para> |
| 53 | </refsect1> |
| 54 | |
| 55 | </refentry> |