Method: Coltrane::Theory::RomanChord#degree
- Defined in:
- lib/coltrane/theory/roman_chord.rb
#degree ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/coltrane/theory/roman_chord.rb', line 30 def degree return @scale.degree_of_note(root_note) unless @chord.nil? d = regexed_notation[:degree] @flats = d.count('b') d = d.delete('b') @degree ||= DIGITS.index(d.upcase) + 1 end |