Sha256: fcab8094d33c5445feb595f970bf72cf88902403a1db0a2be5bd376bda3f819d
Contents?: true
Size: 518 Bytes
Versions: 21
Compression:
Stored size: 518 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..-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
21 entries across 21 versions & 1 rubygems