Sha256: 98df07a48587af4175936fdbec3ebff8e98ccfd05fd2cbaf866b3a9618155d7d

Contents?: true

Size: 380 Bytes

Versions: 9

Compression:

Stored size: 380 Bytes

Contents

module HeadMusic::Style::Annotations
end

class HeadMusic::Style::Annotations::AlwaysMove < HeadMusic::Style::Annotation
  def message
    "Always move to a different note."
  end

  def marks
    melodic_intervals.map.with_index do |interval, i|
      if interval.shorthand == 'PU'
        HeadMusic::Style::Mark.for_all(notes[i..i+1])
      end
    end.reject(&:nil?)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
head_music-0.11.9 lib/head_music/style/annotations/always_move.rb
head_music-0.11.8 lib/head_music/style/annotations/always_move.rb
head_music-0.11.7 lib/head_music/style/annotations/always_move.rb
head_music-0.11.6 lib/head_music/style/annotations/always_move.rb
head_music-0.11.5 lib/head_music/style/annotations/always_move.rb
head_music-0.11.4 lib/head_music/style/annotations/always_move.rb
head_music-0.11.3 lib/head_music/style/annotations/always_move.rb
head_music-0.11.2 lib/head_music/style/annotations/always_move.rb
head_music-0.11.1 lib/head_music/style/annotations/always_move.rb