Fix crash with pitch tracking on low-sample-rate channels (#453)

pull/454/head
kitten 2023-12-12 23:10:19 -08:00 zatwierdzone przez GitHub
rodzic 02aeb37604
commit 779bb3746a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -9,6 +9,7 @@
- Improve error messages for 24-bit WAV files (#443)
- Add end time field to GUI (#451)
- Change GUI render divisor to 4 decimal places (#451)
- Fix crash with pitch tracking on low-sample-rate channels (#453)
## 0.8.1

Wyświetl plik

@ -156,9 +156,10 @@ def split(data: np.ndarray, fenceposts: Sequence[FFTIndex]) -> List[np.ndarray]:
for i in range(len(fenceposts) - 1):
st = fenceposts[i]
end = fenceposts[i + 1]
if not st < ndata:
break
region = data[st:end]
if st < ndata:
region = data[st:end]
else:
region = np.zeros([1], data.dtype)
sub_arys.append(region)
return sub_arys