Sha256: cbbf90f89b9f1ec038c7cca70add86a911c81215f7d44bb25365bb6e4bd1c970
Contents?: true
Size: 422 Bytes
Versions: 9
Compression:
Stored size: 422 Bytes
Contents
module HeadMusic::Style::Annotations end class HeadMusic::Style::Annotations::StartOnTonic < HeadMusic::Style::Annotation def message 'Start on the tonic.' end def marks if first_note && !starts_on_tonic? HeadMusic::Style::Mark.for(first_note) end end def starts_on_tonic? composition.key_signature.tonic_spelling == first_note.spelling end def first_note notes.first end end
Version data entries
9 entries across 9 versions & 1 rubygems