Sha256: 7956d49565281785011dfb14c0159eaa2664a7dac3755210f8722ce0ce1f7fe1
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true # Module for rulesets module HeadMusic::Style::Rulesets; end # Rules for the cantus firmus according to Fux. class HeadMusic::Style::Rulesets::FuxCantusFirmus RULESET = [ HeadMusic::Style::Annotations::AlwaysMove, HeadMusic::Style::Annotations::AtLeastEightNotes, 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::RecoverLargeLeaps, HeadMusic::Style::Annotations::SingableIntervals, HeadMusic::Style::Annotations::SingableRange, HeadMusic::Style::Annotations::StartOnTonic, HeadMusic::Style::Annotations::StepDownToFinalNote, HeadMusic::Style::Annotations::UpToFourteenNotes, ].freeze def self.analyze(voice) RULESET.map { |rule| rule.new(voice) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
head_music-0.19.0 | lib/head_music/style/rulesets/fux_cantus_firmus.rb |
head_music-0.18.0 | lib/head_music/style/rulesets/fux_cantus_firmus.rb |