Debian Codegraph @

opcodes/turnoff.xml

raw symbols SCIP
1
2 <refentry id="turnoff">
3 <indexterm id="IndexTurnoff"><primary>turnoff</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Duration Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>turnoff</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>turnoff</refname>
13
14 <refpurpose>
15 Enables an instrument to turn itself off or to turn an instance of another instrument off.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Enables an instrument to turn itself off or to turn an instance of another instrument off.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>turnoff</command></synopsis>
29 <synopsis><command>turnoff</command> inst</synopsis>
30 <synopsis><command>turnoff</command> knst</synopsis>
31 </refsect1>
32
33
34 <refsect1>
35 <title>Initialization</title>
36 <para>
37 <emphasis>inst</emphasis> -- when used with an i-time parameter, this is the instance handle of an instrument to be
38 turned off (obtained from the nstance opcode).
39 </para>
40
41 <title>Performance</title>
42 <para>
43 <emphasis>turnoff</emphasis> -- with no parameters this p-time statement enables an instrument to turn itself off. Whether of finite duration or <quote>held</quote>, the note currently being performed by this instrument is immediately removed from the active note list. No other notes are affected.
44 </para>
45 <para>
46 <emphasis>kinst</emphasis> -- when used with an k-time parameter, this is the instance handle of an instrument to be turned off (obtained from the nstance opcode).
47 </para>
48 </refsect1>
49
50 <refsect1>
51 <title>Examples</title>
52 <para>
53 The following example uses the turnoff opcode. It will cause a note to terminate when a control signal passes a certain threshold (here the Nyquist frequency). It uses the file <ulink url="examples/turnoff.csd"><citetitle>turnoff.csd</citetitle></ulink>.
54
55 <example>
56 <title>Example of the turnoff opcode.</title>
57
58
59
60 <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>
61 <xi:include href="examples-xml/turnoff.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>See also</title>
68 <para><link linkend="ControlDurctl"><citetitle>Duration Control Statements</citetitle></link></para>
69 </refsect1>
70
71 </refentry>