Class: Vector
- Inherits:
-
Object
- Object
- Vector
- Defined in:
- lib/tonal/extensions.rb
Instance Method Summary collapse
- #to_ratio(reduced: true, equave: 2) ⇒ Tonal::Ratio (also: #ratio)
Instance Method Details
#to_ratio(reduced: true, equave: 2) ⇒ Tonal::Ratio Also known as: ratio
391 |
# File 'lib/tonal/extensions.rb', line 391 def to_ratio(reduced: true, equave: 2/1r) = reduced ? Tonal::ReducedRatio.new(*self, equave: equave) : Tonal::Ratio.new(*self, equave: equave) |