Merge pull request #2 from hb9fxq/patch-1

abandon burst at invalid left_idx (0)
main
proto17 2022-04-25 06:42:36 -04:00 zatwierdzone przez GitHub
commit 6856680800
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -78,7 +78,7 @@ function [zc_indices] = find_zc_indices_by_file(file_path, sample_rate, frequenc
left_idx = passing_scores(idx) - (search_window / 2);
right_idx = left_idx + search_window - 1;
if (left_idx < 0 || right_idx > length(abs_scores))
if (left_idx < 1 || right_idx > length(abs_scores))
warning("Had to abandon searching for burst '%d' as it was too close to the end/beginning of the window", idx);
continue
end