Generates speaker matrices required by the Ambisonic Toolkit's first order diametric decoder, FoaDecoderMatrix: *newDiametric.1
directions |
An array of directions for half of the loudspeaker feeds for the desired decoder. Specify in radians. Rank 1 arrays return pantophonic, while rank 2 arrays return periphonic. E.g., // 2D: ~directions = [ theta0, theta1, ... thetaN ]; // 3D: ~directions = [ [ theta0, phi0 ], [ theta1, phi1 ], ... [ thetaN, phiN ] ]; |
k |
The k factor of the decoder. May be specified as a float: 0.5 to 1.0. |
positions |
An array of positions for half of the loudspeaker feeds for the desired decoder. Specify in cartesian coordinates. // 2D: ~positions = [ [ x0, y0 ], [ x1, y1 ], ... [ xN, yN ] ]; // 3D: ~positions = [ [ x0, y0, z0 ], [ x1, y1, z1 ], ... [ xN, yN, zN ] ]; |
k |
The k factor of the decoder. May be specified as a float: 0.5 to 1.0. |
Answers the number of decoder dimensions: 2D or 3D.
Answers the number of loudspeaker feeds (output channels).
Answers the position of loudspeaker feeds, in cartesian coordinates.
Answers the speaker matrix
Answer k