Class: HeadMusic::Style::Guidelines::SingleLargeLeaps
- Inherits:
-
RecoverLargeLeaps
- Object
- Annotation
- RecoverLargeLeaps
- HeadMusic::Style::Guidelines::SingleLargeLeaps
- Defined in:
- lib/head_music/style/guidelines/single_large_leaps.rb
Overview
A counterpoint guideline
Constant Summary collapse
- MESSAGE =
"Recover leaps by step, repetition, opposite direction, or spelling triad."
Instance Method Summary collapse
Constructor Details
This class inherits a constructor from HeadMusic::Style::Annotation
Instance Method Details
#unrecovered_leap?(first_note_pair, second_note_pair, third_note_pair) ⇒ Boolean (private)
10 11 12 13 14 15 16 17 |
# File 'lib/head_music/style/guidelines/single_large_leaps.rb', line 10 def unrecovered_leap?(first_note_pair, second_note_pair, third_note_pair) return false unless first_note_pair.large_leap? return false if spelling_consonant_triad?(first_note_pair, second_note_pair, third_note_pair) return false if second_note_pair.step? return false if second_note_pair.repetition? !direction_changed?(first_note_pair, second_note_pair) && second_note_pair.leap? end |