tonal-tools 5.1.1 → 5.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc49345ed34f38eed1600818c0b28910a5525a22c8388338c5739650339c9ec1
4
- data.tar.gz: a63830d52d1ed45aa575c6ee2d924c547a74260697853680928fbc0a586d1cfb
3
+ metadata.gz: 83c904daf57681752be14329c6cd8630d700561d6184cb84705b908694b6f944
4
+ data.tar.gz: d64f5204212366b729be2f30609031aa50e8046d16c671f883d4957b0d2a8ad8
5
5
  SHA512:
6
- metadata.gz: 8111bb7846cc0dc220742313c253f6d719d31213ac05c35443eb4dc27058ec236b6bd13b946ad6870ca38b5e48f853385532bc2513f8897c3e5df10c3be3afed
7
- data.tar.gz: cb3b394f94d175c127b874bba207fc4933e49a91197c48822ea8968578ec57d0dd42730b19eb2a7d6a57eebf44b77615d8b84094d2b3419f88d30b5ae34f1e03
6
+ metadata.gz: 1e8d2d083e168674ede2557213f36e722fced30e775d8ca4b52496005b7a317d8fa1ecb30ea4255e09049deb43b6c31b3b68a83b82ecbc19bd8d274cbdfc37bb
7
+ data.tar.gz: 632412ee397215fd1ee8eae32e412374a6b91d9432ec51cb047caeafe135347116f670b4da377d2f0031a89557911e6b7a8b0a1e3e57acb231235068f684c3a8
data/data/commas.yml CHANGED
@@ -1,11 +1,13 @@
1
1
  commas:
2
- # Interval between two enharmonically equivalent notes, as B# and C, in the Pythogorean tuning. ~23 cents
3
- ditonic: 531441/524288
4
- # The interval between a just major third (5:4) and a Pythogorean third (81:64). ~22 cents
5
- syntonic: 81/80
6
- # Difference between the syntonic and ditonic commas. ~2 cents
7
- schisma: 32805/32768
8
2
  diaschisma: 2048/2025
3
+ # Interval between 16/15 and 10/9, 27/25 and 9/8, 6/5 and 5/4, 8/5 and 5/3, 16/9 and 50/27, 9/5 and 15/8. ~71¢
4
+ dicot: 25/24
9
5
  dieses1: 648/625
10
6
  dieses2: 128/125
7
+ # Interval between two enharmonically equivalent notes, as B# and C, in the Pythogorean tuning. ~23¢
8
+ ditonic: 531441/524288
9
+ # Difference between the syntonic and ditonic commas. ~2¢
10
+ schisma: 32805/32768
11
11
  septimal: 64/63
12
+ # The interval between a just major third (5:4) and a Pythogorean third (81:64). ~22¢
13
+ syntonic: 81/80
@@ -1,4 +1,4 @@
1
1
  module Tonal
2
2
  TOOLS_PRODUCER = "mTonal"
3
- TOOLS_VERSION = "5.1.1"
3
+ TOOLS_VERSION = "5.1.2"
4
4
  end
data/lib/tonal/cents.rb CHANGED
@@ -93,6 +93,7 @@ class Tonal::Cents
93
93
  def inspect
94
94
  "#{value.round(@precision)}"
95
95
  end
96
+ alias :to_s :inspect
96
97
 
97
98
  #
98
99
  # Challenges to comparing floats
data/lib/tonal/comma.rb CHANGED
@@ -2,9 +2,9 @@ class Tonal::Comma
2
2
  # @return [Hash] of comma key/value pairs
3
3
  # @example
4
4
  # Tonal::Comma.commas
5
- # => {"ditonic"=>"531441/524288",
6
- # "syntonic"=>"81/80",
7
- # "schisma"=>"32805/32768",
5
+ # => {"diaschisma"=>"2048/2025",
6
+ # "dicot"=>"25/24",
7
+ # "dieses1"=>"648/625",
8
8
  # ...}
9
9
  #
10
10
  def self.commas
@@ -14,10 +14,7 @@ class Tonal::Comma
14
14
  # @return [Array] of comma values
15
15
  # @example
16
16
  # Tonal::Comma.values
17
- # => [(531441/524288),
18
- # (81/80),
19
- # (32805/32768),
20
- # ...]
17
+ # => [(2048/2025), (25/24), (648/625), ...]
21
18
  #
22
19
  def self.values
23
20
  @values ||= commas.values.map(&:to_r)
@@ -26,10 +23,7 @@ class Tonal::Comma
26
23
  # @return [Array] of comma keys
27
24
  # @example
28
25
  # Tonal::Comma.keys
29
- # => ["ditonic",
30
- # "syntonic",
31
- # "schisma",
32
- # ...]
26
+ # => ["diaschisma", "dicot", "dieses1", ...]
33
27
  #
34
28
  def self.keys
35
29
  @keys ||= commas.keys
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tonal-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Hales-Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-07 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yaml
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  version: '3.1'
194
194
  requirements: []
195
- rubygems_version: 3.5.6
195
+ rubygems_version: 3.5.9
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Tonal tools