Commit fb96fed6 by Du Bokai

Fixed ideal setting in ita_setup_vrlab, added azimuth conversion

parent 598675ef
 function azimuth_deg_360 = ita_azimuth180to360(azimuth_deg_180) %ITA_AZIMUTH360TO180 Converts the azimuth angle range to [-180 180] % Detailed explanation goes here for k=1:numel(azimuth_deg_180) if (abs(azimuth_deg_180(k))>180) error('Invalid input range'); elseif azimuth_deg_180(k)>=0 azimuth_deg_360(k)=azimuth_deg_180(k); else azimuth_deg_360(k)=360-azimuth_deg_180(k); end end \ No newline at end of file
 function azimuth_deg_180 = ita_azimuth360to180(azimuth_deg_360) %ITA_AZIMUTH360TO180 Converts the azimuth angle range to [-180 180] % Detailed explanation goes here for k=1:numel(azimuth_deg_360) if (azimuth_deg_360(k)<0) error('Negative input values not allowed'); sign=-1; else sign=1; end azimuth_deg_360(k)=rem(azimuth_deg_360(k),360); if azimuth_deg_360(k)<180 azimuth_deg_180(k)=sign*azimuth_deg_360(k); else azimuth_deg_180(k) = sign*rem(azimuth_deg_360(k),180)-180; end end \ No newline at end of file
 function pos = ita_3da_LSSetup_VRLab(varargin) function pos = ita_setup_LS_VRLab(varargin) % Give back the position, in meters, of the 12 loudspeakers in the VR lab. % See options for more details ... ... @@ -24,7 +24,7 @@ pos.theta_deg = [ 90 90 90 90 60.27 59.92 60.11 60.3 elseif(strcmpi(opts.configuration,'ideal')) pos.r = repmat(2.28,1,12); pos.phi_deg = [ 45:90:360 repmat(0:90:270,1,2) ]; pos.phi_deg = [ 45 360-45 360-135 45+90 repmat(0:90:270,1,2) ]; pos.theta_deg = [ ones(1,4)*90 ones(1,4)*60 ones(1,4)*120 ]; elseif(strcmpi(opts.configuration,'acoustic')) ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!