Debian Codegraph @

opcodes/hrtfer.xml

raw symbols SCIP
1
2 <refentry id="hrtfer">
3 <indexterm id="IndexHrtfer"><primary>hrtfer</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Panning and Spatialization</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>hrtfer</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>hrtfer</refname>
11 <refpurpose>
12 Creates 3D audio for two speakers.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Output is binaural (headphone) 3D audio.
20 </para>
21 <note>This opcode is deprecated; use hrtfstat or similar opcode instead</note>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>aleft, aright <command>hrtfer</command> asig, kaz, kelev, <quote>HRTFcompact</quote></synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>kAz</emphasis> -- azimuth value in degrees. Positive values represent position on the right, negative values are positions on the left.
33 </para>
34
35 <para>
36 <emphasis>kElev</emphasis> -- elevation value in degrees. Positive values represent position above horizontal, negative values are positions under horizontal.
37 </para>
38
39 <para>
40 At present, the only file which can be used with <emphasis>hrtfer</emphasis> is <ulink url="examples/HRTFcompact"><citetitle>HRTFcompact</citetitle></ulink>. It must be passed to the opcode as the last argument within quotes as shown above.
41 </para>
42
43 <para>
44 HRTFcompact may also be obtained via anonymous ftp from: <ulink url="ftp://ftp.cs.bath.ac.uk/pub/dream/utilities/Analysis/HRTFcompact"><citetitle>ftp://ftp.cs.bath.ac.uk/pub/dream/utilities/Analysis/HRTFcompact</citetitle></ulink>
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Performance</title>
50 <para>
51 These unit generators place a mono input signal in a virtual 3D space around the listener by convolving the input with the appropriate HRTF data specified by the opcode's azimuth and elevation values. <emphasis>hrtfer</emphasis> allows these values to be k-values, allowing for dynamic spatialization. <emphasis>hrtfer</emphasis> can only place the input at the requested position because the HRTF is loaded in at i-time (remember that currently, CSound has a limit of 20 files it can hold in memory, otherwise it causes a segmentation fault). The output will need to be scaled either by using <link linkend="balance"><citetitle>balance</citetitle></link> or by multiplying the output by some scaling constant.
52 </para>
53
54 <note>
55 <title>Note</title>
56 <para>
57 The sampling rate of the orchestra must be 44.1kHz. This is because 44.1kHz is the sampling rate at which the HRTFs were measured. In order to be used at a different rate, the HRTFs would need to be re-sampled at the desired rate.
58 </para>
59 </note>
60 </refsect1>
61
62 <refsect1>
63 <title>Examples</title>
64 <para>
65 Here is an example of the hrtfer opcode. It uses the file <ulink url="examples/hrtfer.csd"><citetitle>hrtfer.csd</citetitle></ulink>, <ulink url="examples/HRTFcompact"><citetitle>HRTFcompact</citetitle></ulink>, and <ulink url="examples/drumsMlp.wav"><citetitle>drumsMlp.wav</citetitle></ulink>.
66 <example>
67 <title>Example of the hrtfer opcode.</title>
68 <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>
69 <xi:include href="examples-xml/hrtfer.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
70 </example>
71 </para>
72 </refsect1>
73
74 <refsect1>
75 <title>See also</title>
76 <para><link linkend="SigmodPanspatl"><citetitle>Panning and Spatialization: Binaural spatialization</citetitle></link></para>
77 </refsect1>
78
79 <refsect1>
80 <title>Credits</title>
81 <para>
82 <simplelist>
83 <member>Authors: Eli Breder and David MacIntyre</member>
84 <member>Montreal</member>
85 <member>1996</member>
86 </simplelist>
87 </para>
88
89 <para>Fixed the example thanks to a message from &nameistvan;.</para>
90 </refsect1>
91 </refentry>