Control the Ambisonic Decoder Toolbox (ADT) via the command line, using Octave. This quark allows you to generate run the toolbox with the allrad, pinv and ssf decoders, write .yml files suitable for the Ambisonic Toolkit and write all other outputs native to the ADT.
Create a new instance of the ADT class.
folderPath |
The path of the folder to which to write the .yml files. If nil AND the atk-sc3 quark is installed, this will default to Atk.userExtensionsDir ++ "matrices/HOA(orderNum)/decoders/" (e.g for 3rd order, Atk.userExtensionsDir ++ "matrices/HOA3/decoders/"). If nil and the atk-sc3 is NOT installed, it will default to ADT.userADTDir ++ "/decoders/". |
directions |
An Array of directions in polar form ([theta_radians, phi_radians, rho_meters]) in the form |
match |
A symbol for the gain matching, can be 'amp', 'rms', or 'energy'. NOTE: Match gains only work with the energy beam shape decoders as of now. The other beams, basic and controlled, are matched with 'amp'. |
order |
The ambisonic order of the decoder. This can be a single value, or for mixed order, an array of |
format |
The ambisonic format as an Array of the channel order and normalization. Defaults to |
filename |
An optional filename as the beginning of the written .yml files. Defaults to 'ADT'. |
ymlOnly |
A boolean which determines where the default output files from the ADT get written. |
The directory to the local copy of the Ambisonic Decoder Toolbox repository. Defaults to "/pathToThisQuark/ADT/"
. Otherwise you can set this path manually.
The path to the octave command. Defaults to the path returned from the command "which octave"
.
Generate the matrices for the allrad decoder method.
imagSpeakers |
An array of locations for imaginary speaker locations (used for irregular speaker arrays, such as a dome). If nil, a single imaginary speaker at [0, -0.5pi, 1] is created. |
action |
A function to be evaluated upon completion of the asynchronous matrix generation. |
Generate the matrices for the psuedo-inverse decoder method.
alpha |
A value between 0 and 1. 0 -> mode matching and 1 -> even energy. Values between 0 and 1 give a blend of the two. |
action |
A function to be evaluated upon completion of the asynchronous matrix generation. |
Generate the matrices for the spherical slepian functions decoder method.
alpha |
A value between 0 and 1. 0 -> mode matching and 1 -> even energy. Values between 0 and 1 give a blend of the two. |
elevationRange |
Elevation angle(s) in radians. If empty, assume a hemisphere. If a scalar, a min elevation. If an array: [minElevation, maxElevation]. |
action |
A function to be evaluated upon completion of the asynchronous matrix generation. |