Skip to content

Instantly share code, notes, and snippets.

@tatecarson
Created January 12, 2017 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatecarson/764af0b177df2669cc51e5c465c2449d to your computer and use it in GitHub Desktop.
Save tatecarson/764af0b177df2669cc51e5c465c2449d to your computer and use it in GitHub Desktop.
//Setup for concert hall
//add outputbuss channels
s.options.numOutputBusChannels = 22;
//reboot to initialize
s.reboot;
//run this to use ATK examples in the concert hall
(
//coordinates for speakers
~azArray = [-0.454,0.454,0,0,-1.047,1.047,-2.39,2.39]; // angles
~elArray = [0.088,0.088,0,1.22,0.35,0.35,0.524,0.524]; // elev
~maxDist = 25;
~rhoArray = [1,1,0,0,0.56,0.5,0.8,0.8]; // rho (distance)
//setup for ATK
//combine az and el array
x = [~azArray, ~elArray];
//lace together
~directions = x.lace(16);
//combine
~directions = ~directions.clump(2);
//concerthall decoder
~decoder = FoaDecoderMatrix.newDiametric(~directions);
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment