Sha256: 77e10fd021f903bf79ce564e2fe0289e6e44a6547c782c4fb8775e1e9e029c5c
Contents?: true
Size: 553 Bytes
Versions: 9
Compression:
Stored size: 553 Bytes
Contents
# Module for style guidelines. module HeadMusic::Style::Guidelines; end # marks the voice if the first note is not the first or fifth scale degree of the key. class HeadMusic::Style::Guidelines::EndOnPerfectConsonance < HeadMusic::Style::Annotation MESSAGE = "End on the first or the fifth scale degree." def marks HeadMusic::Style::Mark.for(last_note) if last_note && !ends_on_perfect_consonance? end private def ends_on_perfect_consonance? diatonic_interval_from_tonic(last_note).perfect_consonance?(:two_part_harmony) end end
Version data entries
9 entries across 9 versions & 1 rubygems