Sha256: df5a8a392440f3b9ee9fc7e821b8985d78d0555fe8ef21ce1b9a39d572bcc207
Contents?: true
Size: 604 Bytes
Versions: 5
Compression:
Stored size: 604 Bytes
Contents
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::StartOnPerfectConsonance < HeadMusic::Style::Annotation MESSAGE = 'Start on the tonic or a perfect consonance above the tonic.' def marks if first_note && ((bass_voice? && !starts_on_tonic?) || !starts_on_perfect_consonance?) HeadMusic::Style::Mark.for(first_note) end end private def starts_on_perfect_consonance? functional_interval_from_tonic(first_note).perfect_consonance?(:two_part_harmony) end end
Version data entries
5 entries across 5 versions & 1 rubygems