bformdec2 — Decodes an Ambisonics B format signal.
Decodes an Ambisonics B format signal into loudspeaker specific signals, with dual--band decoding and near--field compensation.
isetup -- loudspeaker setup. There are currently 8 supported setups, the first five are backwards compatible with bformdec1:
(Note that horizontal angles are measured anticlockwise in this description.)
idecoder -- optional (default 0), select the type of decoder
idistance -- optional (default 1 meter), select the distance (in meters) to the loudspeaker (radius if regular configuration)
ifreq -- optional (default 400 Hz), frequency cut (Hz) of the band splitting filter (only has an effect if idecoder=0)
imix -- optional (default 0), type of mix of the velocity and energy decoders' outputs
ifilel -- left HRTF spectral data file
ifiler -- right HRTF spectral data file
Note | |
---|---|
Spectral datafiles (based on the MIT HRTF database) should be in the current directory or the SADIR (see the hrtfstat documentation). |
abform -- input signal array in the B format
aout[] -- loudspeaker specific output signals
The opcode receives as input an audio type array with an Ambisonics signal, and outputs another array with a multichannel audio signal decoded according to the given setup.
By: Pablo Zinemanas, Martín Rocamora and Luis Jure, 2019. Adapted by John ffitch
Based on code from the Ambisonics Decoder Toolbox by Aaron J. Heller.
For more information about the opcode and technical details see: Pablo Zinemanas, Martín Rocamora and Luis Jure. Improving Csound's Ambisonics decoders. Fifth International Csound Conference -- ICSC2019. Italy, 2019 -- PDF.
New in version 6.17