Class: HeadMusic::Style::Guidelines::EndOnTonic

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

Overview

A counterpoint guideline

Constant Summary collapse

MESSAGE =
"End on the first scale degree."

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
# File 'lib/head_music/style/guidelines/end_on_tonic.rb', line 8

def marks
  HeadMusic::Style::Mark.for(last_note) if notes.any? && !ends_on_tonic?
end