| 1 | |
| 2 | <refentry id="endin"> |
| 3 | <indexterm id="IndexEndin"><primary>endin</primary></indexterm> |
| 4 | <refentryinfo><title>Orchestra Syntax:Block Statements</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>endin</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>endin</refname> |
| 13 | |
| 14 | <refpurpose> |
| 15 | Ends the current instrument block. |
| 16 | </refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | <refsect1> |
| 20 | <title>Description</title> |
| 21 | <para> |
| 22 | Ends the current instrument block. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>endin</command></synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | Ends the current instrument block. |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | Instruments can be defined in any order (but they will always be both initialized and performed in ascending instrument number order). Instrument blocks cannot be nested (i.e. one block cannot contain another). |
| 39 | </para> |
| 40 | |
| 41 | <note> |
| 42 | <title>Note</title> |
| 43 | <para> |
| 44 | There may be any number of instrument blocks in an orchestra. |
| 45 | </para> |
| 46 | </note> |
| 47 | </refsect1> |
| 48 | |
| 49 | <refsect1> |
| 50 | <title>Examples</title> |
| 51 | <para> |
| 52 | Here is an example of the endin opcode. It uses the file <ulink url="examples/endin.csd"><citetitle>endin.csd</citetitle></ulink>. |
| 53 | |
| 54 | <example> |
| 55 | <title>Example of the endin opcode.</title> |
| 56 | |
| 57 | |
| 58 | |
| 59 | <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> |
| 60 | <xi:include href="examples-xml/endin.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 61 | </example> |
| 62 | </para> |
| 63 | </refsect1> |
| 64 | |
| 65 | <refsect1> |
| 66 | <title>See also</title> |
| 67 | <para><link linkend="OrchIblock"><citetitle>Instrument and Opcode Block Statements</citetitle></link></para> |
| 68 | </refsect1> |
| 69 | |
| 70 | <refsect1> |
| 71 | <title>Credits</title> |
| 72 | <para>Example written by &namekevin;.</para> |
| 73 | </refsect1> |
| 74 | </refentry> |