Sha256: 4ee0a5eab2a7cbc3d8575b5a18e2757f472269117230bea63a0345d941b8b19d
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
module HeadMusic::Style::Annotations end class HeadMusic::Style::Annotations::LimitOctaveLeaps < HeadMusic::Style::Annotation MESSAGE = "Use a maximum of one octave leap." def marks if octave_leaps.length > 1 octave_leaps.map do |leap| HeadMusic::Style::Mark.for_all(leap.notes) end 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.17.0 | lib/head_music/style/annotations/limit_octave_leaps.rb |
head_music-0.16.2 | lib/head_music/style/annotations/limit_octave_leaps.rb |