Method: MTK::Core::PitchClass#-

Defined in:
lib/mtk/core/pitch_class.rb

#-(interval) ⇒ Object

Transpose this pitch class by subtracing the given value from this value (mod 12)

Parameters:



157
158
159
160
# File 'lib/mtk/core/pitch_class.rb', line 157

def - interval
  new_value = (value - interval.to_f).round
  self.class.from_value new_value
end