lib/head_music/style/guidelines/diatonic.rb in head_music-0.27.0 vs lib/head_music/style/guidelines/diatonic.rb in head_music-0.28.0

- old
+ new

@@ -3,11 +3,11 @@ # Module for style guidelines. module HeadMusic::Style::Guidelines; end # A counterpoint guideline class HeadMusic::Style::Guidelines::Diatonic < HeadMusic::Style::Annotation - MESSAGE = 'Use only notes in the key signature.' + MESSAGE = "Use only notes in the key signature." def marks HeadMusic::Style::Mark.for_each(notes_not_in_key_excluding_penultimate_leading_tone) end @@ -15,10 +15,10 @@ def notes_not_in_key_excluding_penultimate_leading_tone notes_not_in_key.reject do |note| penultimate_note && note == penultimate_note && - HeadMusic::ScaleDegree.new(key_signature, note.pitch.spelling).sign == '#' + HeadMusic::ScaleDegree.new(key_signature, note.pitch.spelling).sign == "#" end end def penultimate_note voice.note_preceding(positions.last) if positions.last