| 1 | |
| 2 | <refentry id="hrtfreverb"> |
| 3 | <indexterm id="Indexhrtfreverb"><primary>hrtfreverb</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Modifiers:Panning and Spatialization</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>hrtfreverb</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>hrtfreverb</refname> |
| 11 | <refpurpose> |
| 12 | A binaural, dynamic FDN based diffuse-field reverberator. The opcode works independently as an efficient, flexible reverberator. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | A frequency-dependent, efficient reverberant field is created based on low and high frequency desired reverb times. The opcode is designed to work with <link linkend="hrtfearly"><citetitle>hrtfearly</citetitle></link>, ideally using its outputs as inputs. However, <link linkend="hrtfreverb"><citetitle>hrtfreverb</citetitle></link> can be used as a standalone tool. Stability is enforced. |
| 20 | </para> |
| 21 | <para> |
| 22 | It is, however, designed for use with <link linkend="hrtfearly"><citetitle>hrtfearly</citetitle></link> to provide spatially accurate reverberation with user definable source trajectories. Accurate interaural coherence is also provided. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>aleft, aright, idel <command>hrtfreverb</command> asrc, ilowrt60, ihighrt60, ifilel, ifiler [,isr, imfp, iorder]</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>ilowrt60</emphasis> - low frequency reverb time. |
| 35 | </para> |
| 36 | <para> |
| 37 | <emphasis>ihighrt60</emphasis> - high frequency reverb time. |
| 38 | </para> |
| 39 | <para> |
| 40 | <emphasis>ifilel</emphasis> - left HRTF spectral data file. |
| 41 | </para> |
| 42 | <para> |
| 43 | <emphasis>ifiler</emphasis> - right HRTF spectral data file. |
| 44 | </para> |
| 45 | <note> |
| 46 | <para>Spectral datafiles (based on the MIT HRTF database) are available in 3 different sampling rates: 44.1, 48 and 96 kHz and are labelled accordingly. Input and processing <emphasis>sr</emphasis> should match datafile <emphasis>sr</emphasis>. Files should be in the current directory or the SADIR (see <link linkend="CommandEnvironment"><citetitle>Environment Variables</citetitle></link>). |
| 47 | </para> |
| 48 | </note> |
| 49 | <note> |
| 50 | <para>HRTF Data files for use with |
| 51 | <link linkend="hrtfmove"><citetitle>hrtfmove</citetitle></link>, |
| 52 | <link linkend="hrtfmove2"><citetitle>hrtfmove2</citetitle></link>, |
| 53 | <link linkend="hrtfstat"><citetitle>hrtfstat</citetitle></link>, |
| 54 | <link linkend="hrtfreverb"><citetitle>hrtfreverb</citetitle></link>, |
| 55 | <link linkend="hrtfreverb"><citetitle>hrtfreverb</citetitle></link> |
| 56 | were updated for Csound 5.15 and later (the code was updated and is more efficient). Old datafiles are now deprecated. |
| 57 | </para> |
| 58 | </note> |
| 59 | <para> |
| 60 | <emphasis>isr</emphasis> - optional, default 44.1kHz, legal values: 44100, 48000 and 96000. |
| 61 | </para> |
| 62 | <para> |
| 63 | <emphasis>imfp</emphasis> - optional, mean free path, defaults to that of a medium room. If used with <link linkend="hrtfearly"><citetitle>hrtfearly</citetitle></link>, the mean free path of the room can be used to calculate the appropriate delay for the later reverb. Legal range: the mean free path of the smallest room allowed by hrtfearly (0.003876) 1. |
| 64 | </para> |
| 65 | <para> |
| 66 | <emphasis>iorder</emphasis> - optional, order of early reflection processing. If used with <link linkend="hrtfearly"><citetitle>hrtfearly</citetitle></link>, the order of early reflections can be used to calculate the appropriate delay on the later reverb. |
| 67 | </para> |
| 68 | |
| 69 | |
| 70 | <title>Performance</title> |
| 71 | <para> |
| 72 | <emphasis>asrc</emphasis> - Input/source signal. |
| 73 | </para> |
| 74 | |
| 75 | <title>Output</title> |
| 76 | <para> |
| 77 | <emphasis>idel</emphasis> - if used with <link linkend="hrtfearly"><citetitle>hrtfearly</citetitle></link>, the appropriate delay for the later reverb, based on the room and order of processing. |
| 78 | </para> |
| 79 | |
| 80 | </refsect1> |
| 81 | |
| 82 | <refsect1> |
| 83 | <title>Examples</title> |
| 84 | <para> |
| 85 | Here is an example of the hrtfearly and hrtfreverb opcodes. It uses the file <ulink url="examples/hrtfearly.csd"><citetitle>hrtfearly.csd</citetitle></ulink>. |
| 86 | </para> |
| 87 | <example> |
| 88 | <title>Example of the htrfearly opcode.</title> |
| 89 | <xi:include href="examples-xml/hrtfearly.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 90 | </example> |
| 91 | </refsect1> |
| 92 | |
| 93 | <refsect1> |
| 94 | <title>See also</title> |
| 95 | <para><link linkend="SigmodPanspatl"><citetitle>Panning and Spatialization: Binaural spatialization</citetitle></link></para> |
| 96 | </refsect1> |
| 97 | |
| 98 | <refsect1> |
| 99 | <title>Credits</title> |
| 100 | <para> |
| 101 | <simplelist> |
| 102 | <member>Author: Brian Carty</member> |
| 103 | <member>Maynooth</member> |
| 104 | <member>2011</member> |
| 105 | </simplelist> |
| 106 | </para> |
| 107 | </refsect1> |
| 108 | </refentry> |