Method: MTK::Core::PitchClass#value

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

#valueObject (readonly)

The value of this pitch class. An integer from 0..11 that indexes this pitch class in PITCH_CLASSES and the #name in NAMES.

This value is fairly arbitrary and just used for sorting purposes and mod 12 arithmetic when composing directly with pitch classes.



54
55
56
# File 'lib/mtk/core/pitch_class.rb', line 54

def value
  @value
end