var wallX = 8000; var wallY = 8000; var wallZ = 8000;//location var VOXELSIZE=12;//size of each voxel var FACTOR = 0.75; var loud=1.0; var maxLoud=500; var minLoud=200;//range of loudness var maxB={color:225,direction:0,speed:1}; var minB={color:50,direction:1,speed:1}; var maxG={color:200,direction:0,speed:1}; var minG={color:30,direction:1,speed:1}; var maxR={color:255,direction:0,speed:1}; var minR={color:150,direction:1,speed:1};//color objects var addVoxArray=[]; var removeVoxArray=[]; var numAddVox=0; var numRemoveVox=0;//array for voxels removed and added var height; var wallWidth=34; var wallHeight=25; var maxHeight=wallHeight; var minHeight=0;//properties of wall var heightSamplesArray=[]; var sampleIndex=0;//declare new array of heights var direction=1; //initiate and fill array of heights for(var k=0;k