|
|
@@ -70,7 +70,7 @@ sphear_af_plot_frequency_response(AF, 300, 20000, -60, -10, 48000, 8192);
|
|
|
%% calculate signal power in reference frequency interval for all
|
|
|
%% measurements and capsules
|
|
|
|
|
|
-[R] = sphear_signal_power(AF, FS, 600, 1000, 8192);
|
|
|
+[R] = sphear_signal_power(AF, FS, 600, 1200, 8192);
|
|
|
|
|
|
[R] = sphear_signal_power(AF, FS, 800, 2400, 8192);
|
|
|
|
|
|
@@ -88,7 +88,7 @@ sphear_plot_r(R, 0);
|
|
|
|
|
|
%% plot frequency response of B-format components for each measurement direction (just a test)
|
|
|
|
|
|
-sphear_bf_plot_frequency_response(BF, 600, 1200, 300, 20000, -60, 0, 48000, 8192);
|
|
|
+sphear_bf_plot_frequency_response(BF, 600, 1200, 300, 20000, -50, 9, 48000, 8192);
|
|
|
|
|
|
%% calculate power of B-format signals in logarithmically spaced frequency bands
|
|
|
|
|
|
@@ -156,7 +156,7 @@ sphear_bf_plot_filters(FC, W, X, Y, Z, U, V);
|
|
|
%% plot the frequency response of the B-format components for each measurement
|
|
|
%% direction, they should all be flat
|
|
|
|
|
|
-sphear_bf_plot_frequency_response(BFF, 600, 1200, 300, 20000, -35, -3, 48000, 8192);
|
|
|
+sphear_bf_plot_frequency_response(BFF, 600, 1200, 300, 20000, -30, 6, 48000, 8192);
|
|
|
|
|
|
%% a revealing plot that highlights the cardinal direction response versus
|
|
|
%% the diagonal direction response (incomplete code for the 8 capsule case)
|
|
|
@@ -182,13 +182,17 @@ sphear_write_simple_a2b_encoder(A2B, TFIR);
|
|
|
|
|
|
%% plot B format components separately for a set of measurements
|
|
|
|
|
|
-sphear_capsule_plot_frequency_response(BFF, [1:16], 300, 20000, -50, 0, 48000, 8192);
|
|
|
+sphear_signal_plot_frequency_response(BFF, [1:16], 300, 20000, -50, 0, 48000, 8192);
|
|
|
|
|
|
-sphear_capsule_plot_frequency_response(BFF, [1, 5, 9, 13], 300, 20000, -50, 0, 48000, 8192);
|
|
|
+%% tetra cardinal directions
|
|
|
+sphear_signal_plot_frequency_response(BFF, [1, 5, 9, 13], 300, 20000, -50, 0, 48000, 8192);
|
|
|
+%% tetra diagonal directions
|
|
|
+sphear_signal_plot_frequency_response(BFF, [1, 5, 9, 13] + 2, 300, 20000, -50, 0, 48000, 8192);
|
|
|
|
|
|
-sphear_capsule_plot_frequency_response(BFF, [1, 3, 5, 7, 9, 11, 13, 15], 300, 20000, -50, 0, 48000, 8192);
|
|
|
-
|
|
|
-sphear_capsule_plot_frequency_response(BFF, [1, 3, 5, 7, 9, 11, 13, 15] + 1, 300, 20000, -50, 0, 48000, 8192);
|
|
|
+%% octa cardinal directions
|
|
|
+sphear_signal_plot_frequency_response(BFF, [1, 3, 5, 7, 9, 11, 13, 15], 300, 20000, -50, 0, 48000, 8192);
|
|
|
+% octa diagonal directions
|
|
|
+sphear_signal_plot_frequency_response(BFF, [1, 3, 5, 7, 9, 11, 13, 15] + 1, 300, 20000, -50, 0, 48000, 8192);
|
|
|
|
|
|
%%%%%%%%% testing code to determine z axis wobble during calibration measurements
|
|
|
|