Sha256: 4f642c7ec6a92498503f7e9b334e85a80161ce1f8762cfe48e3af6ab8b052c95

Contents?: true

Size: 944 Bytes

Versions: 8

Compression:

Stored size: 944 Bytes

Contents

module HeadMusic::Style::Rulesets
end

class HeadMusic::Style::Rulesets::CantusFirmus
  RULESET = [
    HeadMusic::Style::Annotations::AlwaysMove,
    HeadMusic::Style::Annotations::AtLeastEightNotes,
    HeadMusic::Style::Annotations::ConsonantClimax,
    HeadMusic::Style::Annotations::Diatonic,
    HeadMusic::Style::Annotations::DirectionChanges,
    HeadMusic::Style::Annotations::EndOnTonic,
    HeadMusic::Style::Annotations::LimitRange,
    HeadMusic::Style::Annotations::MostlyConjunct,
    HeadMusic::Style::Annotations::NoRests,
    HeadMusic::Style::Annotations::NotesSameLength,
    HeadMusic::Style::Annotations::PermittedIntervals,
    HeadMusic::Style::Annotations::RecoverLargeLeaps,
    HeadMusic::Style::Annotations::StartOnTonic,
    HeadMusic::Style::Annotations::StepDownToFinalNote,
    HeadMusic::Style::Annotations::UpToThirteenNotes,
  ]

  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.11.8 lib/head_music/style/rulesets/cantus_firmus.rb
head_music-0.11.7 lib/head_music/style/rulesets/cantus_firmus.rb
head_music-0.11.6 lib/head_music/style/rulesets/cantus_firmus.rb
head_music-0.11.5 lib/head_music/style/rulesets/cantus_firmus.rb
head_music-0.11.4 lib/head_music/style/rulesets/cantus_firmus.rb
head_music-0.11.3 lib/head_music/style/rulesets/cantus_firmus.rb
head_music-0.11.2 lib/head_music/style/rulesets/cantus_firmus.rb
head_music-0.11.1 lib/head_music/style/rulesets/cantus_firmus.rb