Adding converter scripts for ITA Artificial Head as itaHRTF to OpenDAFF v17

parent 1ce36cbd
%
% OpenDAFF
%
% The ITA Artificial Head HRIR data set can be obtained from:
% http://www.akustik.rwth-aachen.de/cms/Technische-Akustik/Studium/~edgv/Lehrmaterialien/
%
% Requires the ITA Toolbox: http://git.rwth-aachen.de/ita/toolbox
%
addpath( '../..' ) % Find daffv17_write and daffv17_add_metadata function
metadata = [];
metadata = daffv17_add_metadata( metadata, 'Description', 'String', 'ITA Artificial Head' );
metadata = daffv17_add_metadata( metadata, 'Creation date', 'String', date );
metadata = daffv17_add_metadata( metadata, 'License', 'String', 'CC BY-NC 4.0' );
metadata = daffv17_add_metadata( metadata, 'CC License Deed', 'String', 'https://creativecommons.org/licenses/by-nc/4.0/' );
metadata = daffv17_add_metadata( metadata, 'Generation script', 'String', 'Opendaff-v1.7/matlab/hrtfs/ITAKunstkopfAcademic/export_ITAKunstkopfAcademic.m' );
metadata = daffv17_add_metadata( metadata, 'Web Resource (2016)', 'String', 'http://www.akustik.rwth-aachen.de/cms/Technische-Akustik/Studium/~edgv/Lehrmaterialien/' );
hrir_1x1 = ita_read( 'finishedHRTF_1deg.ita' );
hrir_1x1.writeDAFFFile( 'ITA_Artificial_Head_5x5_44kHz_532.v17.ir.daff', { 'metadata', metadata } );
hrir_5x5 = ita_read( 'finishedHRTF_5deg.ita' );
hrir_5x5.writeDAFFFile( 'ITA_Artificial_Head_5x5_44kHz_532.v17.ir.daff', { 'metadata', metadata } );
d = floor( mean( ita_start_IR( hrir_5x5 ) ) );
hrir_5x5_128 = ita_time_crop( hrir_5x5, [ 1 127 ] + d - 20, 'samples' );
hrir_5x5_128.writeDAFFFile( 'ITA_Artificial_Head_5x5_44kHz_128.v17.ir.daff', { 'metadata', metadata } );
hrir_5x5_256 = ita_time_crop( hrir_5x5, [ 1 256 ] + d - 40, 'samples' );
hrir_5x5_256.writeDAFFFile( 'ITA_Artificial_Head_5x5_44kHz_256.v17.ir.daff', { 'metadata', metadata } );
......@@ -5,20 +5,20 @@
% The ITA Kunstkopf Academic HRIR data set can be obtained from:
% http://www.akustik.rwth-aachen.de/cms/Technische-Akustik/Studium/~edgv/Lehrmaterialien/
addpath( '../..' ) % Find daff_write and daff_add_metadata function
addpath( '../..' ) % Find daff_write and daffv17_add_metadata function
metadata = [];
metadata = daff_add_metadata( metadata, 'Description', 'String', 'ITA Kunstkopf HRIR (Academic)' );
metadata = daff_add_metadata( metadata, 'Creation date', 'String', date );
metadata = daff_add_metadata( metadata, 'License', 'String', 'CC BY-NC 4.0' );
metadata = daff_add_metadata( metadata, 'CC License Deed', 'String', 'https://creativecommons.org/licenses/by-nc/4.0/' );
metadata = daff_add_metadata( metadata, 'Generation script', 'String', 'Opendaff-v1.7/matlab/hrtfs/ITAKunstkopfAcademic/export_ITAKunstkopfAcademic.m' );
metadata = daff_add_metadata( metadata, 'Web Resource (2016)', 'String', 'http://www.akustik.rwth-aachen.de/cms/Technische-Akustik/Studium/~edgv/Lehrmaterialien/' );
metadata = daffv17_add_metadata( metadata, 'Description', 'String', 'ITA Kunstkopf HRIR (Academic)' );
metadata = daffv17_add_metadata( metadata, 'Creation date', 'String', date );
metadata = daffv17_add_metadata( metadata, 'License', 'String', 'CC BY-NC 4.0' );
metadata = daffv17_add_metadata( metadata, 'CC License Deed', 'String', 'https://creativecommons.org/licenses/by-nc/4.0/' );
metadata = daffv17_add_metadata( metadata, 'Generation script', 'String', 'Opendaff-v1.7/matlab/hrtfs/ITAKunstkopfAcademic/export_ITAKunstkopfAcademic.m' );
metadata = daffv17_add_metadata( metadata, 'Web Resource (2016)', 'String', 'http://www.akustik.rwth-aachen.de/cms/Technische-Akustik/Studium/~edgv/Lehrmaterialien/' );
config.basepath = 'ITA_Academic_HRIRs_2008-12-22/Standard';
metadata_standard = daff_add_metadata( metadata, 'Postprocessing', 'String', 'Untouched' );
metadata_standard = daffv17_add_metadata( metadata, 'Postprocessing', 'String', 'Untouched' );
daff_write( 'filename', 'ITAKunstkopfAcademicStandard.ir.daff', ...
daffv17_write( 'filename', 'ITAKunstkopfAcademicStandard.ir.daff', ...
'content', 'ir', ...
'datafunc', @dfITAKunstkopfAcademic, ...
'userdata', config, ...
......@@ -32,9 +32,9 @@ daff_write( 'filename', 'ITAKunstkopfAcademicStandard.ir.daff', ...
config.basepath = 'ITA_Academic_HRIRs_2008-12-22/Free-field equalized';
metadata_equalized = daff_add_metadata( metadata, 'Postprocessing', 'String', 'Free-field pressure equalized' );
metadata_equalized = daffv17_add_metadata( metadata, 'Postprocessing', 'String', 'Free-field pressure equalized' );
daff_write( 'filename', 'ITAKunstkopfAcademicFreeFieldEqualized.ir.daff', ...
daffv17_write( 'filename', 'ITAKunstkopfAcademicFreeFieldEqualized.ir.daff', ...
'content', 'ir', ...
'datafunc', @dfITAKunstkopfAcademic, ...
'userdata', config, ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment