Sha256: f44e5baf1fea03544fe0d7e0e3eec0e112d86703ddd4fef1d10a265e62814045
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
module HeadMusic::Style::Annotations end class HeadMusic::Style::Annotations::ApproachPerfectionContrarily < HeadMusic::Style::Annotation MESSAGE = 'Step down to final note.' def marks motions_to_perfect_consonance_approached_directly.map do |bad_motion| HeadMusic::Style::Mark.for_all(bad_motion.notes) end end private def motions_to_perfect_consonance_approached_directly motions_to_perfect_consonance.select(&:direct?) end def motions_to_perfect_consonance motions.select do |motion| motion.second_harmonic_interval.perfect_consonance? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
head_music-0.13.2 | lib/head_music/style/annotations/approach_perfection_contrarily.rb |