Method: MTK::Core::PitchClass.from_value
- Defined in:
- lib/mtk/core/pitch_class.rb
.from_value(value) ⇒ Object Also known as: from_i
return the pitch class with the given integer value mod 12
102 103 104 |
# File 'lib/mtk/core/pitch_class.rb', line 102 def self.from_value(value) PITCH_CLASSES[value.to_i % 12] end |