|
|
@@ -49,7 +49,7 @@ function [BFF] = sphear_fir_render(FIR, fmin, fmax, ymin, ymax, N, Npre, Nfft, p
|
|
|
end
|
|
|
end
|
|
|
|
|
|
- [ref, Fs] = wavread('../data/2016.08.03/ref/reference-001-1.wav');
|
|
|
+ [ref, Fs] = wavread('../data/current/ref/reference-001-1.wav');
|
|
|
%% find highest peak location and define sample range
|
|
|
[index, value] = findmaxpeak(ref);
|
|
|
r_start = index - Npre;
|
|
|
@@ -77,7 +77,7 @@ function [BFF] = sphear_fir_render(FIR, fmin, fmax, ymin, ymax, N, Npre, Nfft, p
|
|
|
%% if we write a 32 bit soundfile we need to scale by 256
|
|
|
%% if we want the same amplitude as when writing a 16 bit
|
|
|
%% per sample soundfile, otherwise we get nasty clipping
|
|
|
- wavwrite(reshape(bf(m,:,:),4,[])' / 256, Fs, 32, ["../data/2016.08.03/bf/b-format-" sprintf("%02.0f", m) ".wav"]);
|
|
|
+ wavwrite(reshape(bf(m,:,:),4,[])' / 256, Fs, 32, ["../data/current/bf/b-format-" sprintf("%02.0f", m) ".wav"]);
|
|
|
|
|
|
%% plot if requested
|
|
|
if (plot_on != 0)
|
|
|
@@ -119,9 +119,9 @@ function [BFF] = sphear_fir_render(FIR, fmin, fmax, ymin, ymax, N, Npre, Nfft, p
|
|
|
legend(l, 'location', 'west');
|
|
|
hold off;
|
|
|
if (strcmp(plot_on, 'eps') || strcmp(plot_on, 'epsc') || plot_on == 1)
|
|
|
- print(f, '-deps', '-tight', copt, ["figures/sphear_bf_azimuth_" sprintf("%03.0f", angle) cext ".eps"]);
|
|
|
+ print(f, '-deps', '-tight', copt, ["../data/current/figures/sphear_bf_azimuth_" sprintf("%03.0f", angle) cext ".eps"]);
|
|
|
else
|
|
|
- print(f, '-dpng', copt, ["figures/sphear_bf_azimuth_" sprintf("%03.0f", angle) cext ".png"]);
|
|
|
+ print(f, '-dpng', copt, ["../data/current/figures/sphear_bf_azimuth_" sprintf("%03.0f", angle) cext ".png"]);
|
|
|
end
|
|
|
end
|
|
|
end
|