Commit 7619e3bc authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] error in script setting right ear equal to left

parent 6f3c8b5a
Loading
Loading
Loading
Loading
Loading
+800 −800

File changed.

Preview size limit exceeded, changes collapsed.

+2 −3
Original line number Diff line number Diff line
@@ -367,7 +367,6 @@ classdef hrtf_library_loader < handle
            NoVecs=size(UnitVecs,2);
            TempL=zeros(size(obj.Discrete_HRTFs,1),NoVecs);
            TempR=zeros(size(obj.Discrete_HRTFs,1),NoVecs);
            obj.Last_HRTFs=zeros(obj.Len,NoVecs,2);
            for k=1:NoVecs
                % For each direction (specified by a column of UnitVecs), we need
                % to figure out which HRTF Direction Vectors match the
@@ -377,11 +376,11 @@ classdef hrtf_library_loader < handle
                [minDist, Dir] = min(Dists(IndSubset));
                % 10e-e4 is roughly the error for 1deg offset on the sphere 
                if abs(minDist) > 10e-3
                    error("Could not find an IR matching this position exactly, please check HRTF set!");
                    error("Could not find an IR exactly matching this position, please check HRTF set!");
                end
                
                TempL(:,k)=obj.Discrete_HRTFs(:,Dir,1);
                TempR(:,k)=obj.Discrete_HRTFs(:,Dir,1);
                TempR(:,k)=obj.Discrete_HRTFs(:,Dir,2);
            end
        end