Debian Codegraph @

opcodes/mute.xml

raw symbols SCIP
1
2 <refentry id="mute">
3 <indexterm id="IndexMute"><primary>mute</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Invocation</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>mute</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>mute</refname>
13 <refpurpose>
14 Mutes/unmutes new instances of a given instrument.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Mutes/unmutes new instances of a given instrument.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>mute</command> insnum [, iswitch]</synopsis>
28 <synopsis><command>mute</command> &quot;insname&quot; [, iswitch]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>insnum</emphasis> -- instrument number. Equivalent to <emphasis>p1</emphasis> in a score <link linkend="i"><citetitle>i statement</citetitle></link>.
35 </para>
36
37 <para>
38 <emphasis><quote>insname</quote></emphasis> -- A string (in double-quotes) representing a named instrument.
39 </para>
40
41 <para>
42 <emphasis>iswitch</emphasis> (optional, default=0) -- represents a switch to mute/unmute an instrument. A value of 0 will mute new instances of an instrument, other values will unmute them. The default value is 0.
43 </para>
44 </refsect1>
45
46 <refsect1>
47 <title>Performance</title>
48 <para>
49 All new instances of instrument inst will me muted (iswitch = 0) or unmuted (iswitch not equal to 0). There is no difficulty with muting muted instruments or unmuting unmuted instruments. The mechanism is the same as used by the score <link linkend="q"><citetitle>q statement</citetitle></link>. For example, it is possible to mute in the score and unmute in some instrument.
50 </para>
51
52 <para>
53 Muting/Unmuting is indicated by a message (depending on message level).
54 </para>
55 </refsect1>
56
57 <refsect1>
58 <title>Examples</title>
59 <para>
60 Here is an example of the mute opcode. It uses the file <ulink url="examples/mute.csd"><citetitle>mute.csd</citetitle></ulink>.
61
62 <example>
63 <title>Example of the mute opcode.</title>
64
65
66 <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>
67 <xi:include href="examples-xml/mute.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
68 </example>
69 </para>
70 </refsect1>
71
72 <refsect1>
73 <title>See also</title>
74 <para><link linkend="ControlInvocat"><citetitle>Instrument Invocation</citetitle></link></para>
75 </refsect1>
76
77 <refsect1>
78 <title>Credits</title>
79 <para>New in version 4.22</para>
80 </refsect1>
81 </refentry>