dsprb 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/CITATION.cff +2 -2
- data/lib/dsprb/formants.rb +1 -1
- data/lib/dsprb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dfb830b28024449122b3fd1accc7a7ae89950d40c8b670c50695e534ab1d91aa
|
|
4
|
+
data.tar.gz: 4b8f553765a4d5e45670c732bf62f34213367f5bd980d133f0b5f59d7b22464c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '069f86099b4c64483d4236f484155a96050e6d087608cd9de149acdcaad8e59a23591a3939a048dc5de302ccac8bd355ccd677798389a3b86f4fe381aeb95819'
|
|
7
|
+
data.tar.gz: 960ff76214e8d42f2c9ffe8fe628433c379e3f06e8822dbfcfee4d4501c60ef95a91a0e2f26abfd5f049f91548ee1ced7f91b8bc990f380374c2165cc8aebdea
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.1 — 2026-12-07
|
|
4
|
+
|
|
5
|
+
- `Formants` no longer takes a real root of the predictor polynomial for a resonance. The root
|
|
6
|
+
finder leaves a real root with an imaginary part near 1e-38 on some platforms and exactly zero
|
|
7
|
+
on others, so with `edge_margin: 0.0` a formant at 0 Hz was reported on one and not on the
|
|
8
|
+
other. Results with the default margin are unchanged.
|
|
9
|
+
|
|
3
10
|
## 2.1.0 — 2026-12-06
|
|
4
11
|
|
|
5
12
|
Accuracy release. Formant frequencies and pitch estimates change; feature values computed with
|
data/CITATION.cff
CHANGED
data/lib/dsprb/formants.rb
CHANGED
|
@@ -81,7 +81,7 @@ module DSP
|
|
|
81
81
|
Polynomial
|
|
82
82
|
.roots(coefficients)
|
|
83
83
|
.filter_map do |root|
|
|
84
|
-
next unless root.imaginary.
|
|
84
|
+
next unless root.imaginary > Float::EPSILON * root.abs
|
|
85
85
|
|
|
86
86
|
frequency = root.arg * nyquist / Math::PI
|
|
87
87
|
bandwidth = -Math.log(root.abs) * sample_rate / Math::PI
|
data/lib/dsprb/version.rb
CHANGED