Sha256: 36554dd45af4db65c93e957f29ac944e73a3998450f4a71d2c6cddbf065e3736

Contents?: true

Size: 1.11 KB

Versions: 9

Compression:

Stored size: 1.11 KB

Contents

# frozen_string_literal: true

# Module for guides
module HeadMusic::Style::Guides; end

# Modern rules for the cantus firmus
class HeadMusic::Style::Guides::ModernCantusFirmus
  RULESET = [
    HeadMusic::Style::Guidelines::AlwaysMove,
    HeadMusic::Style::Guidelines::AtLeastEightNotes,
    HeadMusic::Style::Guidelines::ConsonantClimax,
    HeadMusic::Style::Guidelines::Diatonic,
    HeadMusic::Style::Guidelines::EndOnTonic,
    HeadMusic::Style::Guidelines::LimitOctaveLeaps,
    HeadMusic::Style::Guidelines::ModerateDirectionChanges,
    HeadMusic::Style::Guidelines::MostlyConjunct,
    HeadMusic::Style::Guidelines::NoRests,
    HeadMusic::Style::Guidelines::NotesSameLength,
    HeadMusic::Style::Guidelines::PrepareOctaveLeaps,
    HeadMusic::Style::Guidelines::SingableIntervals,
    HeadMusic::Style::Guidelines::SingableRange,
    HeadMusic::Style::Guidelines::SingleLargeLeaps,
    HeadMusic::Style::Guidelines::StartOnTonic,
    HeadMusic::Style::Guidelines::StepToFinalNote,
    HeadMusic::Style::Guidelines::UpToFourteenNotes
  ].freeze

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
head_music-4.0.1 lib/head_music/style/guides/modern_cantus_firmus.rb
head_music-4.0.0 lib/head_music/style/guides/modern_cantus_firmus.rb
head_music-3.0.1 lib/head_music/style/guides/modern_cantus_firmus.rb
head_music-3.0.0 lib/head_music/style/guides/modern_cantus_firmus.rb
head_music-2.0.1 lib/head_music/style/guides/modern_cantus_firmus.rb
head_music-2.0.0 lib/head_music/style/guides/modern_cantus_firmus.rb
head_music-1.0.0 lib/head_music/style/guides/modern_cantus_firmus.rb
head_music-0.29.0 lib/head_music/style/guides/modern_cantus_firmus.rb
head_music-0.28.0 lib/head_music/style/guides/modern_cantus_firmus.rb