Sha256: 475c94cb69526abb227c4b8ab8bd1dc11b620d1850d47c7e36b55d89f9ae213f
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
# frozen_string_literal: true # Module for Annotations. module HeadMusic::Style::Annotations; end # A counterpoint guideline class HeadMusic::Style::Annotations::EndOnTonic < HeadMusic::Style::Annotation MESSAGE = 'End on the first scale degree.' def marks HeadMusic::Style::Mark.for(notes.last) if !notes.empty? && !ends_on_tonic? end private def ends_on_tonic? tonic_spelling == last_note_spelling end def last_note_spelling last_note&.spelling end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
head_music-0.18.0 | lib/head_music/style/annotations/end_on_tonic.rb |