Created
January 12, 2017 18:51
-
-
Save tatecarson/764af0b177df2669cc51e5c465c2449d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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