tonal-tools 8.8.1 → 8.8.3

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: 6a2b3699a8ff06f96c208824d04c62c5ea28db3915bcabf73d0ff0860fbf677f
4
- data.tar.gz: e5fb5120820a4bf96d4489cdf0034a43de897d7dab7a040d6cfc94698ec6bb7e
3
+ metadata.gz: d17a66bfeffdbb9b385962d18767b8750d67c36ebf6757ca048f7640e905ebaa
4
+ data.tar.gz: 74e415a1db46af3cb9345280cb7bc56cfebfba8ea223a445785f2d5637507dbd
5
5
  SHA512:
6
- metadata.gz: d85688a692e9cdf24bc776d2da3faf817015c9b72d31f2c5a4000f05a29db97bf3c13b78307c92496bd9fac1a3a1da9d34a02f250792af25aaf890a5f646d723
7
- data.tar.gz: 0a21eff54af842f1a640d4fe6b6081a4679359c72f4e03fb06c782724c573b1ec2b1bcc78fbc8538413a464a8ad35ae18c0d5c72669b74d2a6fb7e86ec3ec566
6
+ metadata.gz: 9001c74c1d40419f25f6f63061c72bec1535a947e050495bdb2ceaf15253637b9b1bf752fa221e868e0a76ae7139133981579318277c5d7d205ba8a2df4c04d8
7
+ data.tar.gz: 6bd3ceb1427d2ba7be06155dbe40e9731e2f66752b5ffdac08c45316ce152de7305a3b4d88d83879edca49ddd649da789c05c3ebfd8663f4968bd1ec8969a39f
@@ -1,4 +1,4 @@
1
1
  module Tonal
2
2
  TOOLS_PRODUCER = "mTonal"
3
- TOOLS_VERSION = "8.8.1"
3
+ TOOLS_VERSION = "8.8.3"
4
4
  end
@@ -20,7 +20,7 @@ module Tonal::ExtendableRatio
20
20
  during_initialize(*partials)
21
21
  elsif ratios
22
22
  first = ratios.first
23
- partials = ratios.map{|r| r * first}
23
+ partials = ratios.map{|r| (r * first).to_r}
24
24
  during_initialize(*partials)
25
25
  end
26
26
  end
data/lib/tonal/ratio.rb CHANGED
@@ -666,11 +666,7 @@ class Tonal::Ratio
666
666
  other.instance_of?(self.class) && to_r == other.to_r
667
667
  end
668
668
 
669
- def hash
670
- p, q = 17, 37
671
- p = q * @id.hash
672
- p = q * @name.hash
673
- end
669
+ def hash = [self.class, to_r].hash
674
670
 
675
671
  private
676
672
  def _initialize(antecedent, consequent=nil, label: nil, equave: DEFAULT_EQUAVE)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tonal-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.8.1
4
+ version: 8.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Hales-Garcia
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-07-03 00:00:00.000000000 Z
10
+ date: 2026-10-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: yaml
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '3.1'
195
195
  requirements: []
196
- rubygems_version: 4.0.14
196
+ rubygems_version: 4.0.18
197
197
  specification_version: 4
198
198
  summary: Tonal tools
199
199
  test_files: []