Sha256: 64aa1a02f0f241273c5831dee98aa80518d45f0469ab48cc374f39b50d5586f0
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 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.any? && !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.19.0 | lib/head_music/style/annotations/end_on_tonic.rb |