Sha256: 634f43745be1723eaf29af89c8f5bbf88678575841d37db78f2716ab4eb027b9
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
# frozen_string_literal: true # Module for Annotations. module HeadMusic::Style::Annotations; end # marks the voice if the first note is not the first or fifth scale degree of the key. class HeadMusic::Style::Annotations::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? functional_interval_from_tonic(last_note).perfect_consonance?(:two_part_harmony) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
head_music-0.19.0 | lib/head_music/style/annotations/end_on_perfect_consonance.rb |
head_music-0.18.0 | lib/head_music/style/annotations/end_on_perfect_consonance.rb |