Sha256: 422540406e523489c47752fbb9e2454e6a98a5f4cce643f75d5ff514dfbc9360
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true # Module for Annotations. module HeadMusic::Style::Annotations; end # A counterpoint guideline class HeadMusic::Style::Annotations::StepToFinalNote < HeadMusic::Style::Annotation MESSAGE = 'Step to the final note.' def marks HeadMusic::Style::Mark.for_all(notes[-2..-1]) unless step_to_final_note? end private def step_to_final_note? last_melodic_interval&.step? end def last_melodic_interval @last_melodic_interval ||= melodic_intervals.last end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
head_music-0.19.0 | lib/head_music/style/annotations/step_to_final_note.rb |
head_music-0.18.0 | lib/head_music/style/annotations/step_to_final_note.rb |