Class: HeadMusic::Style::Guidelines::RecoverLargeLeaps
- Inherits:
-
Annotation
- Object
- Annotation
- HeadMusic::Style::Guidelines::RecoverLargeLeaps
- Defined in:
- lib/head_music/style/guidelines/recover_large_leaps.rb
Overview
Ok, so a rule might be that after the first leap (after previous steps) one should normally move by step in the opposite direction unless another leap (in either direction) creates a consonant triad.
-
Brian
Direct Known Subclasses
Constant Summary collapse
- MESSAGE =
"Recover large leaps by step in the opposite direction."
Instance Attribute Summary
Attributes inherited from Annotation
Instance Method Summary collapse
Methods inherited from Annotation
#adherent?, #end_position, #fitness, #initialize, #message, #notes?, #start_position
Constructor Details
This class inherits a constructor from HeadMusic::Style::Annotation
Instance Method Details
#marks ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/head_music/style/guidelines/recover_large_leaps.rb', line 11 def marks melodic_note_pairs.each_cons(3).map do |note_pairs| if unrecovered_leap?(note_pairs[0], note_pairs[1], note_pairs[2]) HeadMusic::Style::Mark.for_all(notes_in_note_pairs(note_pairs)) end end.compact end |