Aufgrund einer Störung des s3 Storage, könnten in nächster Zeit folgende GitLab Funktionen nicht zur Verfügung stehen: LFS, Container Registry, Job Artifacs, Uploads (Wiki, Bilder, Projekt-Exporte). Wir bitten um Verständnis. Es wird mit Hochdruck an der Behebung des Problems gearbeitet. Weitere Informationen zur Störung des Object Storage finden Sie hier: https://maintenance.itc.rwth-aachen.de/ticket/status/messages/59-object-storage-pilot

Commit c2576173 authored by rbo's avatar rbo
Browse files

Read ITA/SOFA/DAFF/HDF5 updated

parent 2c627862
...@@ -118,8 +118,12 @@ classdef itaHRTF < itaAudio ...@@ -118,8 +118,12 @@ classdef itaHRTF < itaAudio
%% Input %% Input
function this = itaHRTF(varargin) function this = itaHRTF(varargin)
% initialize itaHRTF with itaAudio properties (only for nargin == 1) % initialize itaHRTF with itaAudio properties (only for nargin == 1)
if nargin > 1, iniAudio = []; if nargin > 1 || (nargin == 1 && ischar(varargin{1})), iniAudio = [];
else, iniAudio = varargin{:}; elseif nargin == 1 && isstruct(varargin{1})
fNames = {'domain','data','signalType','samplingRate'};
for idxFN = 1:numel(fNames)
iniAudio.(fNames{idxFN}) = varargin{1}.(fNames{idxFN});
end
end end
this = this@itaAudio(iniAudio); this = this@itaAudio(iniAudio);
...@@ -182,7 +186,13 @@ classdef itaHRTF < itaAudio ...@@ -182,7 +186,13 @@ classdef itaHRTF < itaAudio
elseif isa(varargin{1},'itaAudio') elseif isa(varargin{1},'itaAudio')
this.itaAudio2itaHRTF = varargin{1}; this.itaAudio2itaHRTF = varargin{1};
end
elseif ischar(varargin{1}) % openDaff/ sofa/ hdf5 input
if strfind(lower(varargin{1}),'.daff'), this.openDAFF2itaHRTF = varargin{1};
elseif strfind(lower(varargin{1}),'.hdf5'), this.hdf2itaHRTF = varargin{1};
elseif strfind(lower(varargin{1}),'.sofa'), this.sofa2itaHRTF = varargin{1};
end
end
end end
end end
...@@ -1496,11 +1506,8 @@ classdef itaHRTF < itaAudio ...@@ -1496,11 +1506,8 @@ classdef itaHRTF < itaAudio
function result = propertiesSphereType function result = propertiesSphereType
result = {'cap', 'ring','full','undefined'}; result = {'cap', 'ring','full','undefined'};
end end
function result = propertiesInit
result = {'channelCoordinates','domain','data'};
end
end end
end end
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