Sha256: 8aec23ac4f857a29d332a025f0129a7a98881fcc8e88a5b3598b5ebab35e21a8

Contents?: true

Size: 634 Bytes

Versions: 8

Compression:

Stored size: 634 Bytes

Contents

module HeadMusic::Style::Rulesets
end

class HeadMusic::Style::Rulesets::FirstSpeciesHarmony
  RULESET = [
    HeadMusic::Style::Annotations::ApproachPerfectionContrarily,
    HeadMusic::Style::Annotations::AvoidCrossingVoices,
    HeadMusic::Style::Annotations::AvoidOverlappingVoices,
    HeadMusic::Style::Annotations::ConsonantDownbeats,
    HeadMusic::Style::Annotations::PreferContraryMotion,
    HeadMusic::Style::Annotations::PreferImperfect,
    HeadMusic::Style::Annotations::NoUnisonsInMiddle,
    HeadMusic::Style::Annotations::OneToOne,
  ]

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
head_music-0.16.0 lib/head_music/style/rulesets/first_species_harmony.rb
head_music-0.14.8 lib/head_music/style/rulesets/first_species_harmony.rb
head_music-0.14.7 lib/head_music/style/rulesets/first_species_harmony.rb
head_music-0.14.5 lib/head_music/style/rulesets/first_species_harmony.rb
head_music-0.14.4 lib/head_music/style/rulesets/first_species_harmony.rb
head_music-0.14.2 lib/head_music/style/rulesets/first_species_harmony.rb
head_music-0.14.1 lib/head_music/style/rulesets/first_species_harmony.rb
head_music-0.13.2 lib/head_music/style/rulesets/first_species_harmony.rb