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 +4 -4
- data/data/commas.yml +8 -6
- data/lib/tonal/attributions.rb +1 -1
- data/lib/tonal/cents.rb +1 -0
- data/lib/tonal/comma.rb +5 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83c904daf57681752be14329c6cd8630d700561d6184cb84705b908694b6f944
|
4
|
+
data.tar.gz: d64f5204212366b729be2f30609031aa50e8046d16c671f883d4957b0d2a8ad8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/tonal/attributions.rb
CHANGED
data/lib/tonal/cents.rb
CHANGED
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
|
-
# => {"
|
6
|
-
# "
|
7
|
-
# "
|
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
|
-
# => [(
|
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
|
-
# => ["
|
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.
|
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-
|
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.
|
195
|
+
rubygems_version: 3.5.9
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: Tonal tools
|