Class: HeadMusic::Style::Guidelines::SingableIntervals
- Inherits:
-
Annotation
- Object
- Annotation
- HeadMusic::Style::Guidelines::SingableIntervals
- Defined in:
- lib/head_music/style/guidelines/singable_intervals.rb
Overview
A counterpoint guideline
Constant Summary collapse
- PERMITTED_ASCENDING =
%w[PU m2 M2 m3 M3 P4 P5 m6 P8].freeze
- PERMITTED_DESCENDING =
%w[PU m2 M2 m3 M3 P4 P5 P8].freeze
- MESSAGE =
"Use only PU, m2, M2, m3, M3, P4, P5, m6 (ascending), P8 in the melodic line."
Instance Attribute Summary
Attributes inherited from Annotation
Instance Method Summary collapse
Methods inherited from Annotation
#adherent?, #end_position, #fitness, #initialize, #message, #notes?, #start_position
Constructor Details
This class inherits a constructor from HeadMusic::Style::Annotation
Instance Method Details
#marks ⇒ Object
13 14 15 16 17 |
# File 'lib/head_music/style/guidelines/singable_intervals.rb', line 13 def marks melodic_intervals.reject { |interval| permitted?(interval) }.map do |unpermitted_interval| HeadMusic::Style::Mark.for_all([unpermitted_interval.first_note, unpermitted_interval.second_note]) end end |