Skip to content

Commit

Permalink
SOFAconvertCIPIC2SOFA.m: Bug fixed when converting from CIPIC to SOFA…
Browse files Browse the repository at this point in the history
…: The data use an inverted rotating system in azimuth, this was not considered:

CIPIC: 90° azimuth is a source from the right side
SOFA:  90° azimuth is a source from the left side
-> fixed
  • Loading branch information
isfmiho committed Mar 2, 2021
1 parent 124e0fa commit 279c2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API_MO/converters/SOFAconvertCIPIC2SOFA.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
for ee=1:length(pol1)
Obj.Data.IR(ii,1,:)=CIPIC.hrir_l(aa,ee,:);
Obj.Data.IR(ii,2,:)=CIPIC.hrir_r(aa,ee,:);
[azi,ele]=hor2sph(lat(ii),pol(ii));
[azi,ele]=hor2sph(-lat(ii),pol(ii));
% SimpleFreeFieldHRIR 0.2
% Obj.ListenerRotation(ii,:)=[azi ele 0];
% SimpleFreeFieldHRIR 0.3
Expand Down

0 comments on commit 279c2e1

Please sign in to comment.