Class: HeadMusic::Style::Guidelines::StepOutOfUnison

Inherits:
Annotation
  • Object
show all
Defined in:
lib/head_music/style/guidelines/step_out_of_unison.rb

Overview

A counterpoint guideline

Constant Summary collapse

MESSAGE =
"Exit a unison by step."

Instance Attribute Summary

Attributes inherited from Annotation

#voice

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

#marksObject



8
9
10
11
12
# File 'lib/head_music/style/guidelines/step_out_of_unison.rb', line 8

def marks
  leaps_following_unisons.map do |skip|
    HeadMusic::Style::Mark.for_all(skip.notes)
  end.flatten
end