Sha256: 84de104b10a564f1d1961323f82f230de002285c924b031a644003de5effe060

Contents?: true

Size: 441 Bytes

Versions: 21

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

# Module for style guidelines.
module HeadMusic::Style::Guidelines; end

# A counterpoint guideline
class HeadMusic::Style::Guidelines::AlwaysMove < HeadMusic::Style::Annotation
  MESSAGE = 'Always move to a different note.'

  def marks
    melodic_intervals.
      select { |interval| interval.perfect? && interval.unison? }.
      map { |interval| HeadMusic::Style::Mark.for_all(interval.notes) }
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
head_music-0.19.1 lib/head_music/style/guidelines/always_move.rb