Debian Codegraph @

opcodes/mixersetlevel.xml

raw symbols SCIP
1
2 <refentry id="MixerSetLevel">
3 <indexterm id="IndexMixerSetLevel"><primary>MixerSetLevel</primary></indexterm>
4 <refentryinfo><title>Mixer Opcodes</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>MixerSetLevel</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>MixerSetLevel</refname>
11 <refpurpose>
12 Sets the level of a send to a buss.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>Plugin opcode in mixer</para>
19 <para>Sets the level at which signals from the send are added to the buss. The actual sending of the signal to the buss
20 is performed by the <link linkend="MixerSend"><citetitle>MixerSend</citetitle></link> opcode.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis><command>MixerSetLevel</command> isend, ibuss, kgain</synopsis>
27 </refsect1>
28
29
30 <refsect1>
31 <title>Initialization</title>
32
33 <para><emphasis>isend</emphasis> -- The number of the send, for example the number of the instrument sending the signal (but any integer can be used).</para>
34
35 <para><emphasis>ibuss</emphasis> -- The number of the buss, for example the number of the instrument receiving the signal (but any integer can be used).</para>
36
37 <para>Setting the gain for a buss also creates the buss.</para>
38
39 </refsect1>
40
41 <refsect1>
42 <title>Performance</title>
43 <para><emphasis>kgain</emphasis> -- The level (any real number) at which the signal from the send will be mixed onto the buss. The default is 0.</para>
44
45 <para>
46 Use of the mixer requires that instruments setting gains have smaller numbers than instruments sending signals,
47 and that instruments sending signals have smaller numbers than instruments receiving those signals.
48 However, an instrument may have any number of sends or receives. After the final signal is received,
49 <link linkend="MixerClear"><citetitle>MixerClear</citetitle></link> must be invoked to reset the busses before the next kperiod.
50 </para>
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55
56 <para>In the orchestra, define an instrument to control mixer levels:</para>
57 <programlisting>
58 <emphasis role="oblock">instr</emphasis> 1
59 <emphasis role="opc">MixerSetLevel</emphasis> p4, p5, p6
60 <emphasis role="oblock">endin</emphasis></programlisting>
61
62 <para>In the score, use that instrument to set mixer levels:</para>
63 <programlisting>
64 <emphasis role="comment">; SoundFonts</emphasis>
65 <emphasis role="comment">; to Chorus</emphasis>
66 <emphasis role="stamnt">i</emphasis> 1 0 0 100 200 0.9
67 <emphasis role="comment">; to Reverb</emphasis>
68 <emphasis role="stamnt">i</emphasis> 1 0 0 100 210 0.7
69 <emphasis role="comment">; to Output</emphasis>
70 <emphasis role="stamnt">i</emphasis> 1 0 0 100 220 0.3
71
72 <emphasis role="comment">; Kelley Harpsichord</emphasis>
73 <emphasis role="comment">; to Chorus</emphasis>
74 <emphasis role="stamnt">i</emphasis> 1 0 0 3 200 0.30
75 <emphasis role="comment">; to Reverb</emphasis>
76 <emphasis role="stamnt">i</emphasis> 1 0 0 3 210 0.9
77 <emphasis role="comment">; to Output</emphasis>
78 <emphasis role="stamnt">i</emphasis> 1 0 0 3 220 0.1
79
80 <emphasis role="comment">; Chorus to Reverb</emphasis>
81 <emphasis role="stamnt">i</emphasis> 1 0 0 200 210 0.5
82 <emphasis role="comment">; Chorus to Output</emphasis>
83 <emphasis role="stamnt">i</emphasis> 1 0 0 200 220 0.5
84 <emphasis role="comment">; Reverb to Output</emphasis>
85 <emphasis role="stamnt">i</emphasis> 1 0 0 210 220 0.2</programlisting>
86 <para>
87 Here is a complete example of the MixerSetLevel opcode. It uses the file <ulink url="examples/Mixer.csd"><citetitle>Mixer.csd</citetitle></ulink>
88 <example>
89 <title>Complete example of the MixerSetLevel opcode.</title>
90 <xi:include href="examples-xml/Mixer.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
91 </example>
92 </para>
93 </refsect1>
94
95 <refsect1>
96 <title>See also</title>
97 <para><link linkend="MixerOpcodes"><citetitle>Mixer Opcodes</citetitle></link></para>
98 </refsect1>
99
100 <refsect1>
101 <title>Credits</title>
102 <para>Michael Gogins (gogins at pipeline dot com).</para>
103 </refsect1>
104 </refentry>