|
|
@@ -49,7 +49,7 @@ function [BFF] = sphear_fir_render(FIR, fmin, fmax, ymin, ymax, N, Npre, Nfft, p
|
|
|
end
|
|
|
end
|
|
|
|
|
|
- [ref, Fs] = wavread('../cal/2016.04.20/export/reference-001-1.wav');
|
|
|
+ [ref, Fs] = wavread('../data/2016.08.03/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, ["../cal/2016.04.20/export/b-format-" sprintf("%02.0f", m) ".wav"]);
|
|
|
+ wavwrite(reshape(bf(m,:,:),4,[])' / 256, Fs, 32, ["../data/2016.08.03/bf/b-format-" sprintf("%02.0f", m) ".wav"]);
|
|
|
|
|
|
%% plot if requested
|
|
|
if (plot_on != 0)
|