| 1 | |
| 2 | <refentry id="turnon"> |
| 3 | <indexterm id="IndexTurnon"><primary>turnon</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Duration Control</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>turnon</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>turnon</refname> |
| 11 | <refpurpose> |
| 12 | Activate an instrument for an indefinite time. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Activate an instrument for an indefinite time. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis><command>turnon</command> insnum [, itime]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | |
| 31 | <para> |
| 32 | <emphasis>insnum</emphasis> -- instrument number to be activated |
| 33 | </para> |
| 34 | |
| 35 | <para> |
| 36 | <emphasis>itime</emphasis> (optional, default=0) -- delay, in seconds, after which instrument <emphasis>insnum</emphasis> will be activated. Default is 0. |
| 37 | </para> |
| 38 | </refsect1> |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>Performance</title> |
| 42 | <para> |
| 43 | <emphasis>turnon</emphasis> activates instrument <emphasis>insnum</emphasis> after a delay of <emphasis>itime</emphasis> seconds, or immediately if <emphasis>itime</emphasis> is not specified. Instrument is active until explicitly turned off. (See <link linkend="turnoff"><citetitle>turnoff</citetitle></link>.) |
| 44 | </para> |
| 45 | </refsect1> |
| 46 | |
| 47 | |
| 48 | <refsect1> |
| 49 | <title>Examples</title> |
| 50 | <para> |
| 51 | Here is an example of the turnon opcode. It uses the files <ulink url="examples/turnon.csd"><citetitle>turnon.csd</citetitle></ulink>. |
| 52 | <example> |
| 53 | <title>Example of the turnon opcode.</title> |
| 54 | <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> |
| 55 | <xi:include href="examples-xml/turnon.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 56 | </example> |
| 57 | </para> |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>See also</title> |
| 62 | <para><link linkend="ControlDurctl"><citetitle>Duration Control Statements</citetitle></link></para> |
| 63 | </refsect1> |
| 64 | |
| 65 | </refentry> |