Sha256: 7ab5105091b466d9f70033d4f0686e6da548f22c5afa30f4a65f22611bfa494a
Contents?: true
Size: 1.07 KB
Versions: 9
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true # Module for guides module HeadMusic::Style::Guides; end # Rules for the cantus firmus according to Fux. class HeadMusic::Style::Guides::FuxCantusFirmus RULESET = [ HeadMusic::Style::Guidelines::AlwaysMove, HeadMusic::Style::Guidelines::AtLeastEightNotes, HeadMusic::Style::Guidelines::ConsonantClimax, HeadMusic::Style::Guidelines::Diatonic, HeadMusic::Style::Guidelines::EndOnTonic, HeadMusic::Style::Guidelines::FrequentDirectionChanges, HeadMusic::Style::Guidelines::LimitOctaveLeaps, HeadMusic::Style::Guidelines::MostlyConjunct, HeadMusic::Style::Guidelines::NoRests, HeadMusic::Style::Guidelines::NotesSameLength, HeadMusic::Style::Guidelines::RecoverLargeLeaps, HeadMusic::Style::Guidelines::SingableIntervals, HeadMusic::Style::Guidelines::SingableRange, HeadMusic::Style::Guidelines::StartOnTonic, HeadMusic::Style::Guidelines::StepDownToFinalNote, 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