Class: HeadMusic::Style::Guidelines::NoUnisonsInMiddle

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

Overview

A counterpoint guideline

Constant Summary collapse

MESSAGE =
"Unisons may only be used in the first and last note."

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/no_unisons_in_middle.rb', line 8

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