Sha256: 169cc232bfcff4fad1096047523d2b17327722d0e516a7de1a86b23629415091

Contents?: true

Size: 477 Bytes

Versions: 7

Compression:

Stored size: 477 Bytes

Contents

class HeadMusic::Style::Annotation
  attr_reader :voice

  delegate(
    :composition,
    :highest_notes,
    :lowest_notes,
    :melodic_intervals,
    :notes,
    :notes_not_in_key,
    :placements,
    :range,
    :rests,
    to: :voice
  )

  def initialize(voice)
    @voice = voice
  end

  def fitness
    [marks].flatten.compact.map(&:fitness).reduce(1, :*)
  end

  def marks
    raise NotImplementedError
  end

  def message
    raise NotImplementedError
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
head_music-0.11.7 lib/head_music/style/annotation.rb
head_music-0.11.6 lib/head_music/style/annotation.rb
head_music-0.11.5 lib/head_music/style/annotation.rb
head_music-0.11.4 lib/head_music/style/annotation.rb
head_music-0.11.3 lib/head_music/style/annotation.rb
head_music-0.11.2 lib/head_music/style/annotation.rb
head_music-0.11.1 lib/head_music/style/annotation.rb