Sha256: 0a57b06851fae50c44228ca3184dd45d39affbfc66133daf9e87e42341eb5f9c
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
module HeadMusic::Style::Annotations end class HeadMusic::Style::Annotations::UpToFourteenNotes < HeadMusic::Style::Annotation MAXIMUM_NOTES = 14 MESSAGE = 'Write up to fourteen 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
head_music-0.17.0 | lib/head_music/style/annotations/up_to_fourteen_notes.rb |
head_music-0.16.2 | lib/head_music/style/annotations/up_to_fourteen_notes.rb |