Aufgrund einer Wartung wird GitLab am 19.10. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 19.10. between 8:00 and 9:00 am.

generateExampleDirectivities.m 3.86 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
% 
%  OpenDAFF - A free, open-source software package for directional audio data,
%             distributed under the terms of the GNU Lesser Public License (LGPL)
%              
%  (c) Copyright Institute of Technical Acoustics, RWTH Aachen University
%   
%  File:	generateExampleDirectivities.m
%  Purpose:	Matlab script that generates a set of example directivities
%           for testing, debugging and playing around
%  Authors:	Frank Wefers (Frank.Wefers@akustik.rwth-aachen.de)
%
%  $Id: generateExampleDirectivities.m,v 1.4 2010/03/04 13:49:26 fwefers Exp $
%

% <ITA-Toolbox>
% This file is part of the application openDAFF for the ITA-Toolbox. All rights reserved.
% You can find the license for this m-file in the application folder.
% </ITA-Toolbox>


% Export in 5x5 resolution
alpha_res = 5;
beta_res = 5;
channels = 1;
orient = [0 0 0];


28
daffv15_write('filename', '../MS Frontal dirac.daff', ...
29
30
31
32
33
34
35
           'content', 'ms', ...
           'datafunc', @dfFrontalDiracMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient);
       
36
daffv15_write('filename', '../MS Frontal hemisphere.daff', ...
37
38
39
40
41
42
43
           'content', 'ms', ...
           'datafunc', @dfFrontalHemisphereMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient);
       
44
daffv15_write('filename', '../MS Upper hemisphere.daff', ...
45
46
47
48
49
50
51
           'content', 'ms', ...
           'datafunc', @dfUpperHemisphereMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient);
       
52
daffv15_write('filename', '../MS Omnidirectional.daff', ...
53
54
55
56
57
58
59
           'content', 'ms', ...
           'datafunc', @dfOmnidirectionalMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient);
       
60
daffv15_write('filename', '../MS Dipole.daff', ...
61
62
63
64
65
66
67
           'content', 'ms', ...
           'datafunc', @dfDipoleMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient);
       
68
daffv15_write('filename', '../MS Quadrupole.daff', ...
69
70
71
72
73
74
75
           'content', 'ms', ...
           'datafunc', @dfQuadrupoleMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient);
       
76
daffv15_write('filename', '../MS Star.daff', ...
77
78
79
80
81
82
83
           'content', 'ms', ...
           'datafunc', @dfStarMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient); 
       
84
daffv15_write('filename', '../MS Disc.daff', ...
85
86
87
88
89
90
91
           'content', 'ms', ...
           'datafunc', @dfDiscMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient); 

92
daffv15_write('filename', '../MS Cube.daff', ...
93
94
95
96
97
98
99
           'content', 'ms', ...
           'datafunc', @dfCubeMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient);   

100
daffv15_write('filename', '../MS Bulb.daff', ...
101
102
103
104
105
106
107
           'content', 'ms', ...
           'datafunc', @dfBulbMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient); 
       
108
daffv15_write('filename', '../MS Thin Belt.daff', ...
109
110
111
112
113
114
115
           'content', 'ms', ...
           'datafunc', @dfOmnidirectionalMS, ...
           'channels', channels, ...
           'alphares', alpha_res, ...
           'betares', beta_res, ...
           'orient', orient, ...
           'betarange', [80 100]);