Sha256: 7b25fa71fada882e2d765f93533d8aeddfcb3b30961ce037c7345bea3b31a10a

Contents?: true

Size: 361 Bytes

Versions: 9

Compression:

Stored size: 361 Bytes

Contents

module HeadMusic::Style::Annotations
end

class HeadMusic::Style::Annotations::AlwaysMove < HeadMusic::Style::Annotation
  MESSAGE = "Always move to a different note."

  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.compact
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
head_music-0.17.0 lib/head_music/style/annotations/always_move.rb
head_music-0.16.2 lib/head_music/style/annotations/always_move.rb
head_music-0.16.0 lib/head_music/style/annotations/always_move.rb
head_music-0.14.8 lib/head_music/style/annotations/always_move.rb
head_music-0.14.7 lib/head_music/style/annotations/always_move.rb
head_music-0.14.5 lib/head_music/style/annotations/always_move.rb
head_music-0.14.4 lib/head_music/style/annotations/always_move.rb
head_music-0.14.2 lib/head_music/style/annotations/always_move.rb
head_music-0.14.1 lib/head_music/style/annotations/always_move.rb