Sha256: d2aff96cfb2b4dcc8de10c36e39c82a10dc04f3a99e2ed60bb875e73beb72b88
Contents?: true
Size: 522 Bytes
Versions: 2
Compression:
Stored size: 522 Bytes
Contents
# frozen_string_literal: true # Module for Annotations. module HeadMusic::Style::Annotations; end # A counterpoint guideline: Use a maximum of one octave leap. class HeadMusic::Style::Annotations::LimitOctaveLeaps < HeadMusic::Style::Annotation MESSAGE = 'Use a maximum of one octave leap.' def marks return if octave_leaps.length <= 1 octave_leaps.map do |leap| HeadMusic::Style::Mark.for_all(leap.notes) end end private def octave_leaps melodic_intervals.select(&:octave?) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
head_music-0.19.0 | lib/head_music/style/annotations/limit_octave_leaps.rb |
head_music-0.18.0 | lib/head_music/style/annotations/limit_octave_leaps.rb |