| 1 | |
| 2 | <refentry id="compileorc"> |
| 3 | <indexterm id="Indexcompileorc"><primary>compileorc</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Compilation</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>compileorc</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>compileorc</refname> |
| 11 | <refpurpose> |
| 12 | compiles a new orchestra from an ASCII file |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Compileorc will compile one or more instruments at init time, which will be added to the running engine. In case of |
| 20 | existing instrument numbers or names, these will be replaced, but any instance still running of the old instrument |
| 21 | definition will still perform until it terminates. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ires <command>compileorc</command> Sfilename</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis><quote>Sfilename</quote></emphasis> -- a string containing the name of the file containing the orchestra. |
| 34 | </para> |
| 35 | <para> |
| 36 | <emphasis><quote>ires</quote></emphasis> -- returns 0 if compilation was successful, or -1 if not. |
| 37 | </para> |
| 38 | </refsect1> |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>Examples</title> |
| 42 | <para> |
| 43 | Here is an example of the compileorc opcode. It uses the file <ulink url="examples/compileorc.csd"><citetitle>compileorc.csd</citetitle></ulink>. |
| 44 | <example> |
| 45 | <title>Example of the compileorc opcode.</title> |
| 46 | <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> |
| 47 | <xi:include href="examples-xml/compileorc.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 48 | </example> |
| 49 | </para> |
| 50 | |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>See also</title> |
| 55 | <para><link linkend="ControlInvocat"><citetitle>Instrument Invocation</citetitle></link></para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>Credits</title> |
| 60 | <para>Author: &namevictor;, 2013 </para> |
| 61 | </refsect1> |
| 62 | </refentry> |