| 1 |
|
| 2 |
<refentry id="bformdec2"> |
| 3 |
<indexterm id="IndexBformdec2"><primary>bformdec2</primary></indexterm> |
| 4 |
<refentryinfo><title>Signal Modifiers:Panning and Spatialization</title></refentryinfo> |
| 5 |
<refmeta> |
| 6 |
<refentrytitle>bformdec2</refentrytitle> |
| 7 |
</refmeta> |
| 8 |
|
| 9 |
<refnamediv> |
| 10 |
<refname>bformdec2</refname> |
| 11 |
<refpurpose> |
| 12 |
Decodes an Ambisonics B format signal. |
| 13 |
</refpurpose> |
| 14 |
</refnamediv> |
| 15 |
|
| 16 |
<refsect1> |
| 17 |
<title>Description</title> |
| 18 |
<para> |
| 19 |
Decodes an Ambisonics B format signal into loudspeaker specific signals, with dual--band decoding and near--field compensation. |
| 20 |
</para> |
| 21 |
</refsect1> |
| 22 |
|
| 23 |
<refsect1> |
| 24 |
<title>Syntax</title> |
| 25 |
<synopsis>aout[] <command>bformdec2</command> isetup, abform[], [idecoder, idistance, ifreq, \ |
| 26 |
imix, ifilel, ifiler]</synopsis> |
| 27 |
</refsect1> |
| 28 |
|
| 29 |
<refsect1> |
| 30 |
<title>Initialization</title> |
| 31 |
<para> |
| 32 |
<emphasis>isetup</emphasis> -- loudspeaker setup. |
| 33 |
There are currently 8 supported setups, the first five are backwards compatible with <link linkend="bformdec1"><citetitle>bformdec1</citetitle></link>: |
| 34 |
|
| 35 |
<para>(Note that horizontal angles are measured anticlockwise in this description.)</para> |
| 36 |
|
| 37 |
<itemizedlist> |
| 38 |
<listitem> |
| 39 |
1. Stereo -- L(90), R(-90); this is an M+S style stereo decode. |
| 40 |
</listitem> |
| 41 |
<listitem> |
| 42 |
2. Quad -- FL(45), BL(135), BR(-135), FR(-45). This is a |
| 43 |
first-order decode. |
| 44 |
</listitem> |
| 45 |
<listitem> |
| 46 |
3. 5.0 -- L(30), R(-30), C(0), BL(110), BR(-110). This is the |
| 47 |
configuration suggested by the International Telecommunication |
| 48 |
Union for 5.1 surround systems for music listening. This is a |
| 49 |
first- or second- order decode. |
| 50 |
</listitem> |
| 51 |
<listitem> |
| 52 |
4. Octagon -- FFL(22.5), FLL(67.5), BLL(112.5), BBL(157.5), |
| 53 |
BBR(-157.5), BRR(-112.5), FRR(-67.5), FFR(-22.5). This is a |
| 54 |
first-, second- or third-order decode, depending on the number |
| 55 |
of input channels. |
| 56 |
</listitem> |
| 57 |
<listitem> |
| 58 |
5. Cube -- FLD(45,-35.26), FLU(45,35.26), BLD(135,-35.26), |
| 59 |
BLU(135,35.26), BRD(-135,-35.26), BRU(-135,35.26), |
| 60 |
FRD(-45,-35.26), FRU(-45,35.26). This is a first-order decode. |
| 61 |
</listitem> |
| 62 |
<listitem> |
| 63 |
6. Hexagon -- FL(30), L(90) BL(150), BR(-150), R(-90), |
| 64 |
FR(-30). This is a first- or second- order decode. |
| 65 |
</listitem> |
| 66 |
<listitem> |
| 67 |
21. 2D binaural configuration. This first decodes to a |
| 68 |
octagon configuration and then applies HRTF filters. |
| 69 |
</listitem> |
| 70 |
<listitem> |
| 71 |
31. 3D binaural configuration. This first decodes to a |
| 72 |
dodecahedron configuration and then applies HRTF |
| 73 |
filters. |
| 74 |
</listitem> |
| 75 |
</itemizedlist> |
| 76 |
</para> |
| 77 |
<para> |
| 78 |
<emphasis>idecoder</emphasis> -- optional (default 0), select the type of decoder |
| 79 |
<itemizedlist> |
| 80 |
<listitem> |
| 81 |
0. Dual decoder (velocity and energy decoders using dual-band splitting). |
| 82 |
</listitem> |
| 83 |
<listitem> |
| 84 |
1. Velocity decoder. |
| 85 |
</listitem> |
| 86 |
<listitem> |
| 87 |
2. Energy decoder. |
| 88 |
</listitem> |
| 89 |
</itemizedlist> |
| 90 |
</para> |
| 91 |
<para> |
| 92 |
<emphasis>idistance</emphasis> -- optional (default 1 meter), select the distance (in meters) to the loudspeaker (radius if regular configuration) |
| 93 |
</para> |
| 94 |
<para> |
| 95 |
<emphasis>ifreq</emphasis> -- optional (default 400 Hz), |
| 96 |
frequency cut (Hz) of the band splitting filter (only has an |
| 97 |
effect if <emphasis>idecoder</emphasis>=0) |
| 98 |
</para> |
| 99 |
<para> |
| 100 |
<emphasis>imix</emphasis> -- optional (default 0), type of mix |
| 101 |
of the velocity and energy decoders' outputs |
| 102 |
<itemizedlist> |
| 103 |
<listitem> |
| 104 |
0. Energy |
| 105 |
</listitem> |
| 106 |
<listitem> |
| 107 |
1. RMS |
| 108 |
</listitem> |
| 109 |
<listitem> |
| 110 |
2. Amplitude |
| 111 |
</listitem> |
| 112 |
</itemizedlist> |
| 113 |
</para> |
| 114 |
<para> |
| 115 |
<emphasis>ifilel</emphasis> -- left HRTF spectral data file |
| 116 |
</para> |
| 117 |
<para> |
| 118 |
<emphasis>ifiler</emphasis> -- right HRTF spectral data file |
| 119 |
</para> |
| 120 |
<note> |
| 121 |
|
| 122 |
<para> |
| 123 |
Spectral datafiles (based on the MIT HRTF database) should be |
| 124 |
in the current directory or the SADIR (see the <link |
| 125 |
linkend="hrtfstat"><citetitle>hrtfstat |
| 126 |
documentation</citetitle></link>). |
| 127 |
</para> |
| 128 |
</note> |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
</refsect1> |
| 138 |
|
| 139 |
<refsect1> |
| 140 |
<title>Performance</title> |
| 141 |
|
| 142 |
<para> |
| 143 |
<emphasis>abform</emphasis> -- input signal array in the B format |
| 144 |
</para> |
| 145 |
<para> |
| 146 |
<emphasis>aout[]</emphasis> -- loudspeaker specific output signals |
| 147 |
</para> |
| 148 |
|
| 149 |
<para> |
| 150 |
The opcode receives as input an audio type array with an |
| 151 |
Ambisonics signal, and outputs another array with a multichannel |
| 152 |
audio signal decoded according to the given setup. |
| 153 |
</para> |
| 154 |
|
| 155 |
</refsect1> |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
<refsect1> |
| 180 |
<title>See also</title> |
| 181 |
<para><link linkend="SigmodPanspatl"><citetitle>Panning and Spatialization: Ambisonics</citetitle></link></para> |
| 182 |
</refsect1> |
| 183 |
|
| 184 |
<refsect1> |
| 185 |
|
| 186 |
<title>Credits</title> |
| 187 |
<para>By: Pablo Zinemanas, Martín Rocamora and Luis Jure, |
| 188 |
2019. Adapted by John ffitch</para> |
| 189 |
<para>Based on code from the <ulink url="https://bitbucket.org/ambidecodertoolbox/adt/"><citetitle>Ambisonics Decoder Toolbox</citetitle></ulink> by Aaron J. Heller.</para> |
| 190 |
<para>For more information about the opcode and technical details |
| 191 |
see: Pablo Zinemanas, Martín Rocamora and Luis Jure. Improving |
| 192 |
Csound's Ambisonics decoders. Fifth International Csound |
| 193 |
Conference -- ICSC2019. Italy, 2019 -- <ulink |
| 194 |
url="https://csound.com/icsc2019/proceedings/7.pdf"><citetitle>PDF</citetitle></ulink>.</para> |
| 195 |
<para>New in version 6.17</para> |
| 196 |
</refsect1> |
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
</refentry> |