Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
c2576173
Commit
c2576173
authored
Aug 11, 2017
by
rbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read ITA/SOFA/DAFF/HDF5 updated
parent
2c627862
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
+14
-7
No files found.
applications/Binaural-HRTF/HRTF_class/@itaHRTF/itaHRTF.m
View file @
c2576173
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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