tonal-tools 3.0.1 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tonal/attributions.rb +1 -1
- data/lib/tonal/reduced_ratio.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e8ef912e87b6414a378f95a598db2dd3ee7ab6cee3d4d3ebeebd85bf230e8e
|
4
|
+
data.tar.gz: 5beba2db70ca5ece543bfd2795d01471f9cd8d23b8347ae4ec443cfb6f800ea5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d245e8f861efffe2f7eac563a95b9c1d89f570fdfe49459f57d5c9157c3023c5733f468cc4dbff1ab81da6a67bc68b0de0db98013aeb383e61fd1b7c3f57de76
|
7
|
+
data.tar.gz: 022b5687ab7b8bf16043b517fa0cbe3124bb17bafedc56f8be0f66a3c54e918b63b188473f1825974078b246672cd02b3aa5017c4372c27f9948aaf6267e21bb
|
data/lib/tonal/attributions.rb
CHANGED
data/lib/tonal/reduced_ratio.rb
CHANGED
@@ -25,14 +25,15 @@ class Tonal::ReducedRatio < Tonal::Ratio
|
|
25
25
|
Tonal::Ratio.new(antecedent, consequent)
|
26
26
|
end
|
27
27
|
|
28
|
-
# @return [Tonal::Interval] between
|
28
|
+
# @return [Tonal::Interval] between ratio (upper) and self (lower)
|
29
29
|
# @example
|
30
|
-
# Tonal::ReducedRatio.new(133).interval_with(3/2r)
|
30
|
+
# Tonal::ReducedRatio.new(133).interval_with(3/2r)
|
31
|
+
# => 192/133 (3/2 / 133/128)
|
31
32
|
# @param ratio
|
32
33
|
#
|
33
34
|
def interval_with(ratio)
|
34
35
|
r = ratio.is_a?(self.class) ? ratio : self.class.new(ratio)
|
35
|
-
Tonal::Interval.new(
|
36
|
+
Tonal::Interval.new(r, self)
|
36
37
|
end
|
37
38
|
|
38
39
|
# @return [Tonal::ReducedRatio] with antecedent and precedent switched
|
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:
|
4
|
+
version: 4.0.1
|
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-03-
|
11
|
+
date: 2024-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yaml
|