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
764e9e7a
Commit
764e9e7a
authored
Jan 25, 2017
by
Michael Kohnen
Browse files
Added metadata for DAFF files in itaHRTF, this fixes the delay sample bug
parent
a1d54e79
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
View file @
764e9e7a
This diff is collapsed.
Click to expand it.
applications/Binaural-HRTF/HRTF_class/@itaHRTF/writeDAFFFile.m
View file @
764e9e7a
...
...
@@ -9,7 +9,7 @@ function writeDAFFFile( this, file_path, metadata_user )
%
% Output: none
metadata
=
[]
;
metadata
=
this
.
mMetadata
;
if
nargin
>=
3
metadata
=
metadata_user
;
end
...
...
@@ -70,8 +70,11 @@ metadata = daffv17_add_metadata( metadata, 'Generation script', 'String', 'write
metadata
=
daffv17_add_metadata
(
metadata
,
'Generation toolkit'
,
'String'
,
'ITA-Toolkit'
);
metadata
=
daffv17_add_metadata
(
metadata
,
'Generation date'
,
'String'
,
date
);
metadata
=
daffv17_add_metadata
(
metadata
,
'Web resource'
,
'String'
,
'http://www.ita-toolkit.org'
);
channels
=
2
;
% this.nChannels < does not work?
channels
=
this
.
nChannels
/
this
.
nDirections
;
if
(
channels
<
1
)
warning
(
'Number of channels per record was not detected correctly, assuming 2 channel records'
);
channels
=
2
;
end
% Content type switcher between time domain (ir) and frequency domain (dft)
% (requires different data functions)
...
...
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