module HeadMusic::Style::Annotations end class HeadMusic::Style::Annotations::UpToFourteenNotes < HeadMusic::Style::Annotation MAXIMUM_NOTES = 14 MESSAGE = 'Write up to thirteen notes.' def marks if overage > 0 HeadMusic::Style::Mark.for_each(notes[MAXIMUM_NOTES..-1]) end end private def overage [notes.length - MAXIMUM_NOTES, 0].max end end