Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
e8697bba
Commit
e8697bba
authored
Mar 26, 2018
by
Jan-Gerrit Richter
Browse files
changed ita_read to ita_read_ita for a speedup
parent
e54d2870
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/Binaural-HRTF/HRTFarc/ita_HRTFarc_postprocessing.m
View file @
e8697bba
...
...
@@ -43,12 +43,12 @@ wb = itaWaitbar(numAzAngle, 'calculate HRTF', {'azimuth'});
% reference
% first determine how many channels the measurement has
currentDataEnding
=
num2str
(
1
);
currentData
=
ita_merge
(
ita_read
([
currentPath
filesep
currentDataEnding
'.ita'
]));
currentData
=
ita_merge
(
ita_read
_ita
([
currentPath
filesep
currentDataEnding
'.ita'
]));
numChannels
=
currentData
.
nChannels
;
%read the reference
currentRefTmp
=
ita_read
([
path_ref
filesep
sArgs
.
ref_name
'.ita'
]);
currentRefTmp
=
ita_read
_ita
([
path_ref
filesep
sArgs
.
ref_name
'.ita'
]);
currentRef
=
merge
(
currentRefTmp
(
1
:
1
:
length
(
currentRefTmp
)));
if
currentRef
.
nChannels
==
2
...
...
@@ -86,7 +86,7 @@ for iAz = 1:numAzAngle
currentDataEnding
=
num2str
(
iAz
);
try
currentData
=
ita_merge
(
ita_read
([
currentPath
filesep
currentDataEnding
'.ita'
]));
currentData
=
ita_merge
(
ita_read
_ita
([
currentPath
filesep
currentDataEnding
'.ita'
]));
if
sArgs
.
eimar
phi
=
mod
(
2
*
pi
-
currentData
.
channelCoordinates
.
phi
+
deg2rad
(
sArgs
.
phiAdd
)
,
2
*
pi
);
else
phi
=
mod
(
currentData
.
channelCoordinates
.
phi
+
deg2rad
(
sArgs
.
phiAdd
)
,
2
*
pi
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment