| 1 | |
| 2 | <refentry id="compilestr"> |
| 3 | <indexterm id="Indexcompilestr"><primary>compilestr</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Compilation</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>compilestr</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>compilestr</refname> |
| 11 | <refpurpose> |
| 12 | compiles a new orchestra passed in as an ASCII string |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Compilestr 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. Only new instances will use the new definition. |
| 22 | Multi-line strings are accepted, using {{ }} to enclose the string. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>ires <command>compilestr</command> Sorch</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis><quote>Sorch</quote></emphasis> -- a string (in double-quotes or enclosed by {{ }}) containing one or more instruments. |
| 35 | </para> |
| 36 | <para> |
| 37 | <emphasis><quote>ires</quote></emphasis> -- returns 0 if compilation was successful, or -1 if not. |
| 38 | </para> |
| 39 | </refsect1> |
| 40 | |
| 41 | <refsect1> |
| 42 | <title>Examples</title> |
| 43 | <para> |
| 44 | Here is an example of the compilestr opcode. It uses the file <ulink url="examples/compilestr.csd"><citetitle>compilestr.csd</citetitle></ulink>. |
| 45 | <example> |
| 46 | <title>Example of the compilestr opcode.</title> |
| 47 | <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> |
| 48 | <xi:include href="examples-xml/compilestr.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 49 | </example> |
| 50 | </para> |
| 51 | |
| 52 | </refsect1> |
| 53 | |
| 54 | <refsect1> |
| 55 | <title>See also</title> |
| 56 | <para><link linkend="ControlInvocat"><citetitle>Instrument Invocation</citetitle></link></para> |
| 57 | </refsect1> |
| 58 | |
| 59 | <refsect1> |
| 60 | <title>Credits</title> |
| 61 | <para>Author: &namevictor;, 2013 </para> |
| 62 | </refsect1> |
| 63 | </refentry> |