Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Remoras/Explosion-Detector/ex_xcorr_explosion_p2_v4.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ function ex_xcorr_explosion_p2_v4(varargin)
continue
end

y = audioread(filepath,[rStart rStop]);
%Making sure audioread doesn't crash because of scientific notation
rStart2 = uint64(rStart);
rStop2 = uint64(rStop);
rStart3 = double(rStart2);
rStop3 = double(rStop2);
y = audioread(filepath,[rStart3 rStop3]);
% Filter between 200 and 2000 Hz.
yFilt = filtfilt(B,A,y); % Filter click.
fprintf('max = %0.3f\n',max(yFilt))
Expand Down