Class: HeadMusic::Style::Guidelines::EndOnTonic
- Inherits:
-
Annotation
- Object
- Annotation
- HeadMusic::Style::Guidelines::EndOnTonic
- 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 Method Summary collapse
- #ends_on_tonic? ⇒ Boolean private
- #last_note_spelling ⇒ Object private
- #marks ⇒ Object
Constructor Details
This class inherits a constructor from HeadMusic::Style::Annotation
Instance Method Details
#ends_on_tonic? ⇒ Boolean (private)
14 15 16 |
# File 'lib/head_music/style/guidelines/end_on_tonic.rb', line 14 def ends_on_tonic? tonic_spelling == last_note_spelling end |
#last_note_spelling ⇒ Object (private)
18 19 20 |
# File 'lib/head_music/style/guidelines/end_on_tonic.rb', line 18 def last_note_spelling last_note&.spelling end |