Class: HeadMusic::Style::Guidelines::UpToFourteenNotes
- Inherits:
-
Annotation
- Object
- Annotation
- HeadMusic::Style::Guidelines::UpToFourteenNotes
- Defined in:
- lib/head_music/style/guidelines/up_to_fourteen_notes.rb
Overview
A counterpoint guideline
Constant Summary collapse
- MAXIMUM_NOTES =
14- MESSAGE =
"Write up to fourteen notes."
Instance Method Summary collapse
- #marks ⇒ Object
- #overage ⇒ Object private
Constructor Details
This class inherits a constructor from HeadMusic::Style::Annotation
Instance Method Details
#marks ⇒ Object
10 11 12 |
# File 'lib/head_music/style/guidelines/up_to_fourteen_notes.rb', line 10 def marks HeadMusic::Style::Mark.for_each(notes[MAXIMUM_NOTES..]) if overage.positive? end |
#overage ⇒ Object (private)
16 17 18 |
# File 'lib/head_music/style/guidelines/up_to_fourteen_notes.rb', line 16 def overage [notes.length - MAXIMUM_NOTES, 0].max end |