tonal-tools 6.1.1 → 6.2.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: 50cbd332f2e7aeb3da776868cd3bd27cd3fd4f25146de194781fa1f8032a3e93
4
- data.tar.gz: 3cddb6f9f59e814afface6e739597653442b13f402bf5839784decff633b4662
3
+ metadata.gz: 8b2ee2750807000bca57c6e3624a3ad589afe4ce01bde9b1a62fc66a565e7ac6
4
+ data.tar.gz: '0823e862608da5a193aacd5a582d9094694b36c794e652af39987580f14cf9d7'
5
5
  SHA512:
6
- metadata.gz: 425f07aa55d053031df5bb092495ab88a82741964b3f56295868873b4a96e773ca0af9005352bdb289331d090331c8cb75c05aada7573db858b453002153a1fc
7
- data.tar.gz: bb7871f1f9dcdcef36de328f9f839d50c9e9ceba6918b0d6bbd335a85803760461fb4a37a203149a3f7e629d53fcb3f80c56b1bd97d6249a781a0c433fd1ef23
6
+ metadata.gz: bfb21cebb86682d76e3f7bd9ac5aafa26307382d8788fad7176ca893aa9edc34074f7b89ae9e32ed4913f84285a388ecf8b3fd32f788d1cee8377fb05237c410
7
+ data.tar.gz: ad25d51f865409821b6ae06d2efa74364fa324c13bc3a1e215ed79c289df143e3f117b4396fffd912fbce03642507bd72d3ce2a23dc14cfbb7e6976270415b72
@@ -1,4 +1,4 @@
1
1
  module Tonal
2
2
  TOOLS_PRODUCER = "mTonal"
3
- TOOLS_VERSION = "6.1.1"
3
+ TOOLS_VERSION = "6.2.1"
4
4
  end
data/lib/tonal/ratio.rb CHANGED
@@ -8,6 +8,8 @@ class Tonal::Ratio
8
8
 
9
9
  attr_reader :antecedent, :consequent, :equave, :reduced_antecedent, :reduced_consequent
10
10
 
11
+ attr_accessor :label
12
+
11
13
  # @return [Tonal::Ratio]
12
14
  # @example
13
15
  # Tonal::Ratio.new(3,2) => (3/2)
@@ -97,6 +99,7 @@ class Tonal::Ratio
97
99
  def ratio
98
100
  self
99
101
  end
102
+ alias :to_ratio :ratio
100
103
 
101
104
  # @return [Tonal::Ratio::Approximation] self's approximation instance
102
105
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tonal-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1
4
+ version: 6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Hales-Garcia
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
10
+ date: 2025-01-16 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: yaml
@@ -178,7 +177,6 @@ licenses:
178
177
  metadata:
179
178
  source_code_uri: https://github.com/mTonal/tools/
180
179
  documentation_uri: https://mtonal.github.io/tools/
181
- post_install_message:
182
180
  rdoc_options: []
183
181
  require_paths:
184
182
  - lib
@@ -193,8 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
191
  - !ruby/object:Gem::Version
194
192
  version: '3.1'
195
193
  requirements: []
196
- rubygems_version: 3.5.23
197
- signing_key:
194
+ rubygems_version: 3.6.2
198
195
  specification_version: 4
199
196
  summary: Tonal tools
200
197
  test_files: []