Code cleanup

parent 5980a94a
%% Generates examplary DAFF files of various content type and shape
% 5x5 degree grid resolution
alpha_res = 15;
beta_res = 15;
alpha_res = 5;
beta_res = 5;
channels = 1;
default_orient = [0 0 0]; % yaw pitch roll @ +Y+X-Z (OpenGL)
default_orient = [ 0 0 0 ]; % yaw pitch roll @ +Y+X-Z (OpenGL)
metadata = [];
metadata = daffv17_add_metadata( metadata, 'Description', 'String', 'Generated OpenDAFF example directivity' );
......@@ -13,6 +15,7 @@ metadata = daffv17_add_metadata( metadata, 'Generation script', 'String', 'Opend
addpath( 'datafuncs' )
%%
daffv17_write('filename', 'ExampleUnityOmni.ms.daff', ...
'content', 'ms', ...
'datafunc', @dfUnityMS, ...
......@@ -22,7 +25,8 @@ daffv17_write('filename', 'ExampleUnityOmni.ms.daff', ...
'orient', default_orient, ...
'metadata', metadata);
disp( ' ' )
%%
daffv17_write('filename', 'ExampleUnityUpperHemisphere.ms.daff', ...
'content', 'ms', ...
'datafunc', @dfUnityMS, ...
......@@ -33,7 +37,8 @@ daffv17_write('filename', 'ExampleUnityUpperHemisphere.ms.daff', ...
'metadata', metadata, ...
'betarange', [ 90 180 ]);
disp( ' ' )
%%
daffv17_write('filename', 'ExampleUnityLowerHemisphere.ms.daff', ...
'content', 'ms', ...
'datafunc', @dfUnityMS, ...
......@@ -44,7 +49,8 @@ daffv17_write('filename', 'ExampleUnityLowerHemisphere.ms.daff', ...
'metadata', metadata, ...
'betarange', [ 0 90 ]);
disp( ' ' )
%%
daffv17_write('filename', 'ExampleUnityFrontalHemisphere.ms.daff', ...
'content', 'ms', ...
'datafunc', @dfUnityMS, ...
......@@ -55,7 +61,8 @@ daffv17_write('filename', 'ExampleUnityFrontalHemisphere.ms.daff', ...
'metadata', metadata, ...
'alpharange', [ 0 180 ] );
disp( ' ' )
%%
daffv17_write('filename', 'ExampleUnityRearHemisphere.ms.daff', ...
'content', 'ms', ...
'datafunc', @dfUnityMS, ...
......@@ -67,6 +74,7 @@ daffv17_write('filename', 'ExampleUnityRearHemisphere.ms.daff', ...
'alpharange', [ 0 180 ] );
disp( ' ' )
%%
daffv17_write('filename', 'ExampleShortDiracOmni.ir.daff', ...
'content', 'ir', ...
'datafunc', @dfDiracIR, ...
......@@ -77,7 +85,8 @@ daffv17_write('filename', 'ExampleShortDiracOmni.ir.daff', ...
'metadata', metadata, ...
'quantization', 'float32' );
disp( ' ' )
%%
daffv17_write('filename', 'ExampleShortDiracOmni.ir.daff', ...
'content', 'ir', ...
'datafunc', @dfDiracIR, ...
......@@ -89,6 +98,7 @@ daffv17_write('filename', 'ExampleShortDiracOmni.ir.daff', ...
'quantization', 'float32' );
disp( ' ' )
%%
daffv17_write('filename', 'ExampleFigureOfEightFront.ms.daff', ...
'content', 'ms', ...
'datafunc', @dfFigureOfEightMS, ...
......@@ -123,7 +133,8 @@ daffv17_write('filename', 'ExampleFigureOfEightSide.ms.daff', ...
'metadata', metadata, ...
'quantization', 'float32' );
disp( ' ' )
%%
daffv17_write('filename', 'ExampleLowPass3dBOmni.ms.daff', ...
'content', 'ms', ...
'datafunc', @dfLowPass3dBMS, ...
......@@ -134,6 +145,7 @@ daffv17_write('filename', 'ExampleLowPass3dBOmni.ms.daff', ...
'metadata', metadata);
disp( ' ' )
%%
daffv17_write('filename', 'ExampleLowPass6dBOmni.ms.daff', ...
'content', 'ms', ...
'datafunc', @dfLowPass6dBMS, ...
......@@ -142,4 +154,4 @@ daffv17_write('filename', 'ExampleLowPass6dBOmni.ms.daff', ...
'betares', beta_res, ...
'orient', default_orient, ...
'metadata', metadata);
disp( ' ' )
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