Debian Codegraph @

opcodes/spsend.xml

raw symbols SCIP
1
2 <refentry id="spsend">
3 <indexterm id="IndexSpsend"><primary>spsend</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Panning and Spatialization</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>spsend</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>spsend</refname>
11 <refpurpose>
12 Generates output signals based on a previously defined <emphasis>space</emphasis> opcode.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 <emphasis>spsend</emphasis> depends upon the existence of a previously defined <link linkend="space"><citetitle>space</citetitle></link>. The output signals from <emphasis>spsend</emphasis> are derived from the values given for xy and reverb in the <emphasis>space</emphasis> and are ready to be sent to local or global reverb units (see example below).
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>a1, a2, a3, a4 <command>spsend</command></synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Performance</title>
30 <para>
31 The configuration of the xy coordinates in space places the signal in the following way:
32 <itemizedlist>
33 <listitem>
34 <para>a1 is -1, 1</para>
35 </listitem>
36
37 <listitem>
38 <para>a2 is 1, 1</para>
39 </listitem>
40
41 <listitem>
42 <para>a3 is -1, -1</para>
43 </listitem>
44
45 <listitem>
46 <para>a4 is 1, -1</para>
47 </listitem>
48 </itemizedlist>
49 </para>
50
51 <para>
52 This assumes a loudspeaker set up as a1 is left front, a2 is right front, a3 is left back, a4 is right back. Values greater than 1 will result in sounds being attenuated, as if in the distance. <emphasis>space</emphasis> considers the speakers to be at a distance of 1; smaller values of xy can be used, but <emphasis>space</emphasis> will not amplify the signal in this case. It will, however balance the signal so that it can sound as if it were within the 4 speaker <emphasis>space</emphasis>. x=0, y=1, will place the signal equally balanced between left and right front channels, x=y=0 will place the signal equally in all 4 channels, and so on. Although there must be 4 output signals from <emphasis>space</emphasis>, it can be used in a 2 channel orchestra. If the xy's are kept so that Y&gt;=1, it should work well to do panning and fixed localization in a stereo field.
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>Examples</title>
58 <para>
59 Here is a stereo example of the spsend opcode. It uses the file <ulink url="examples/spsend.csd"><citetitle>spsend.csd</citetitle></ulink>.
60 <example>
61 <title>Example of the spsend opcode.</title>
62 <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>
63 <xi:include href="examples-xml/spsend.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
64 </example>
65 </para>
66 </refsect1>
67
68 <refsect1>
69 <title>See also</title>
70 <para><link linkend="SigmodPanspatl"><citetitle>Panning and Spatialization: Amplitude spatialization</citetitle></link></para>
71 </refsect1>
72
73 <refsect1>
74 <title>Credits</title>
75 <para>
76 <simplelist>
77 <member>Author: Richard Karpen</member>
78 <member>Seattle, WA USA</member>
79 <member>1998</member>
80 </simplelist>
81 </para>
82
83 <para>New in Csound version 3.48</para>
84 </refsect1>
85 </refentry>