Sha256: e43f9ab293a6caf56ee9bba8e07cc62b25b754d5c5bdc39d6cac497ae079ba1e

Contents?: true

Size: 921 Bytes

Versions: 3

Compression:

Stored size: 921 Bytes

Contents

module HeadMusic::Style::Rulesets
end

class HeadMusic::Style::Rulesets::FirstSpeciesMelody
  RULESET = [
    HeadMusic::Style::Annotations::ConsonantClimax,
    HeadMusic::Style::Annotations::Diatonic,
    HeadMusic::Style::Annotations::EndOnTonic,
    HeadMusic::Style::Annotations::FrequentDirectionChanges,
    HeadMusic::Style::Annotations::LimitOctaveLeaps,
    HeadMusic::Style::Annotations::MostlyConjunct,
    HeadMusic::Style::Annotations::NoRests,
    HeadMusic::Style::Annotations::NotesSameLength,
    HeadMusic::Style::Annotations::PrepareOctaveLeaps,
    HeadMusic::Style::Annotations::SingableIntervals,
    HeadMusic::Style::Annotations::SingableRange,
    HeadMusic::Style::Annotations::StartOnPerfectConsonance,
    HeadMusic::Style::Annotations::StepOutOfUnison,
    HeadMusic::Style::Annotations::StepUpToFinalNote,
  ]

  def self.analyze(voice)
    RULESET.map { |rule| rule.new(voice) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
head_music-0.17.0 lib/head_music/style/rulesets/first_species_melody.rb
head_music-0.16.2 lib/head_music/style/rulesets/first_species_melody.rb
head_music-0.16.0 lib/head_music/style/rulesets/first_species_melody.rb