Sha256: 24ae30bfed544d1dbd90a363bf5b5a3dd7a42a1c3941db6417296178d78aa7b4
Contents?: true
Size: 516 Bytes
Versions: 9
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true # Module for style guidelines. module HeadMusic::Style::Guidelines; end # A counterpoint guideline class HeadMusic::Style::Guidelines::StepToFinalNote < HeadMusic::Style::Annotation MESSAGE = "Step to the final note." def marks HeadMusic::Style::Mark.for_all(notes[-2..]) 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
9 entries across 9 versions & 1 rubygems