Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Marco Berzborn
toolbox
Commits
7885735e
Commit
7885735e
authored
Nov 23, 2016
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding different converter script switches in daffv17 convert from miro script
parent
3da72f80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
4 deletions
+32
-4
applications/VirtualAcoustics/openDAFF/OpenDAFFv1.7/hrtfs/TH_Koeln_AudioGroup/daffv17_convert_from_miro.m
...1.7/hrtfs/TH_Koeln_AudioGroup/daffv17_convert_from_miro.m
+32
-4
No files found.
applications/VirtualAcoustics/openDAFF/OpenDAFFv1.7/hrtfs/TH_Koeln_AudioGroup/daffv17_convert_from_miro.m
View file @
7885735e
...
...
@@ -70,7 +70,7 @@ betarange = rad2deg( [ min( miro_obj.elevation ) max( miro_obj.elevation ) ] );
betares
=
diff
(
betarange
)
/
(
betanums
-
1
);
if
strcmpi
(
contenttype
,
'dft'
)
%
$
Execute using data function 'dfMIRODFT' (discrete fourier transform)
% Execute using data function 'dfMIRODFT' (discrete fourier transform)
daffv17_write
(
'filename'
,
target_file_path
,
...
'datafunc'
,
@
dfMIRODFT
,
...
'userdata'
,
miro_obj
,
...
...
...
@@ -83,7 +83,7 @@ if strcmpi( contenttype, 'dft' )
'orient'
,
[
0
0
0
],
...
'channels'
,
2
);
elseif
strcmpi
(
contenttype
,
'ms'
)
%
$
Execute using data function 'dfMIROMS' (magnitude spectrum)
% Execute using data function 'dfMIROMS' (magnitude spectrum)
daffv17_write
(
'filename'
,
target_file_path
,
...
'datafunc'
,
@
dfMIROMS
,
...
'userdata'
,
miro_obj
,
...
...
...
@@ -95,8 +95,34 @@ elseif strcmpi( contenttype, 'ms' )
'betarange'
,
betarange
,
...
'orient'
,
[
0
0
0
],
...
'channels'
,
2
);
elseif
strcmpi
(
contenttype
,
'mps'
)
% Execute using data function 'dfMIROMPS' (magnitude and phase spectrum)
daffv17_write
(
'filename'
,
target_file_path
,
...
'datafunc'
,
@
dfMIROMPS
,
...
'userdata'
,
miro_obj
,
...
'metadata'
,
metadata
,
...
'content'
,
'mps'
,
...
'alphares'
,
alphares
,
...
'alpharange'
,
alpharange
,
...
'betares'
,
betares
,
...
'betarange'
,
betarange
,
...
'orient'
,
[
0
0
0
],
...
'channels'
,
2
);
elseif
strcmpi
(
contenttype
,
'ps'
)
% Execute using data function 'dfMIROPS' (phase spectrum)
daffv17_write
(
'filename'
,
target_file_path
,
...
'datafunc'
,
@
dfMIROPS
,
...
'userdata'
,
miro_obj
,
...
'metadata'
,
metadata
,
...
'content'
,
'ps'
,
...
'alphares'
,
alphares
,
...
'alpharange'
,
alpharange
,
...
'betares'
,
betares
,
...
'betarange'
,
betarange
,
...
'orient'
,
[
0
0
0
],
...
'channels'
,
2
);
else
%
$ Execute using data function 'dfMIRO' (time domain
)
%
Execute using data function 'dfMIROIR' (impulse response
)
daffv17_write
(
'filename'
,
target_file_path
,
...
'datafunc'
,
@
dfMIROIR
,
...
'userdata'
,
miro_obj
,
...
...
...
@@ -109,4 +135,6 @@ else
'orient'
,
[
0
0
0
],
...
'channels'
,
2
,
...
'quantization'
,
'float32'
);
end
\ No newline at end of file
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