tonal-tools 8.5.1 → 8.5.2

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: b2692d9bde2f36dbc28cae1f8e0a892af38e901939ad2e93561442c5d12df67d
4
- data.tar.gz: 5b10622098df90d28d52c99037cc0eda5e834eeba1e200d63bb75dcf70ed811f
3
+ metadata.gz: 9693004e4d76b2c000404f674643eab88d6f9cfa6096d2c7f47e7f25eabfb8b1
4
+ data.tar.gz: cbf08e054d50ba6b677472aeb5d8824c45dd2493425cecbea0852aeb50a50249
5
5
  SHA512:
6
- metadata.gz: 18eff7addd0dcc1cba4d9a59a7272853e1bba9a22c13cb727989214542e5705d69134dfb27e61f31d975e0b344226abc9758c5b1d3074285baf68854fc2c07d7
7
- data.tar.gz: 74c467d127fbcbb1c56f43530a3b1d6cbd9b7b7d9fa1f52ad44a443d5a2aef28c43f90b8e187039c4d79a31d32284cc4056c4d766dc1216c6d8db686918e4406
6
+ metadata.gz: d2ba9456c73a6a6c48ef51acc2fd0572f8ffd9be7a0735b77b18c6a1e0a8faf6a352df45b3d5f44b057200c51e936ea9ba21d5ea210fdf607a327c33ebf4282a
7
+ data.tar.gz: '02078ab88ddd46711864a22a4b568e2f2c0df14d3c854518e2eb01835b1abaacb4a8d5148988381b2fd3c8553eb21361f8faff725405c242f0a6a6e379e7233b'
@@ -1,4 +1,4 @@
1
1
  module Tonal
2
2
  TOOLS_PRODUCER = "mTonal"
3
- TOOLS_VERSION = "8.5.1"
3
+ TOOLS_VERSION = "8.5.2"
4
4
  end
data/lib/tonal/step.rb CHANGED
@@ -48,7 +48,6 @@ class Tonal::Scale
48
48
  def step_to_r
49
49
  Rational(step, modulo)
50
50
  end
51
- alias :to_r :step_to_r
52
51
 
53
52
  # @return [Rational] of the ratio
54
53
  # @example
@@ -59,15 +58,14 @@ class Tonal::Scale
59
58
  ratio.to_r
60
59
  end
61
60
 
62
- # @return [Tonal::Cents] measure of step in cents
61
+ # @return [Tonal::Cents] measure of tempered in cents
63
62
  # @example
64
- # Tonal::Scale::Step.new(ratio: 3/2r, modulo: 31).step_to_cents
63
+ # Tonal::Scale::Step.new(ratio: 3/2r, modulo: 31).tempered_to_cents
65
64
  # => 696.77
66
65
  #
67
- def step_to_cents
66
+ def tempered_to_cents
68
67
  tempered.to_cents
69
68
  end
70
- alias :to_cents :step_to_cents
71
69
 
72
70
  # @return [Tonal::Cents] measure of ratio in cents
73
71
  # @example
@@ -78,13 +76,13 @@ class Tonal::Scale
78
76
  ratio.to_cents
79
77
  end
80
78
 
81
- # @return [Tonal::Cents] the difference between the step and the ratio
79
+ # @return [Tonal::Cents] the difference between the tempered number and the ratio
82
80
  # @example
83
81
  # Tonal::Scale::Step.new(ratio: 3/2r, modulo: 31).efficiency => 5.19 ¢
84
82
  #
85
83
  def efficiency
86
- # We want the efficiency from the step (self). The step is the tempered approximation of the ratio, so we want to know how far off the step is from the ratio. So we take the ratio and subtract the step.
87
- ratio_to_cents - step_to_cents
84
+ # We want the efficiency from the step (self). The tempered value is the tempered approximation of the ratio, so we want to know how far off the step is from the ratio. So we take the ratio and subtract the tempered value.
85
+ ratio_to_cents - tempered_to_cents
88
86
  end
89
87
  alias :cents_difference :efficiency
90
88
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tonal-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.5.1
4
+ version: 8.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Hales-Garcia