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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95fa46c06455517326ed2480148bbe836984bfdcd67cb8204b98d5692965d39b
4
- data.tar.gz: e6be4f3c2c1b9640c5a604d2b378fbc1a7558d95a04197f37b18864719c0a1f4
3
+ metadata.gz: dfb830b28024449122b3fd1accc7a7ae89950d40c8b670c50695e534ab1d91aa
4
+ data.tar.gz: 4b8f553765a4d5e45670c732bf62f34213367f5bd980d133f0b5f59d7b22464c
5
5
  SHA512:
6
- metadata.gz: a6c9c78b8f74676aa7f76ae904aed472d2eec8f5c82892ac83a77c605eaa38b5c2d11bd4e67187347045157c463646a845659bb4d32560070364d9cb1ad7863b
7
- data.tar.gz: 2763ac45d71342013f629ccdd7913d6f1df0f9b9344b5cabec33105690cd988abc5f06f9b7814e49a2ea88b0976ac2322313a58c0447ea76a5668d8eb637fcd8
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
@@ -26,5 +26,5 @@ keywords:
26
26
  - formant estimation
27
27
  - fundamental frequency
28
28
  license: MIT
29
- version: 2.1.0
30
- date-released: "2026-12-06"
29
+ version: 2.1.1
30
+ date-released: "2026-12-07"
@@ -81,7 +81,7 @@ module DSP
81
81
  Polynomial
82
82
  .roots(coefficients)
83
83
  .filter_map do |root|
84
- next unless root.imaginary.positive?
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSP
4
- VERSION = "2.1.0"
4
+ VERSION = "2.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsprb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Den Patin 丁丹旭