Class: HeadMusic::Style::Guidelines::SingableRange

Inherits:
Annotation
  • Object
show all
Defined in:
lib/head_music/style/guidelines/singable_range.rb

Overview

A voice shouldn’t expend the range of a 10th.

Constant Summary collapse

MAXIMUM_RANGE =
10
MESSAGE =
"Limit melodic range to a 10th."

Instance Attribute Summary

Attributes inherited from Annotation

#voice

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

#marksObject



12
13
14
# File 'lib/head_music/style/guidelines/singable_range.rb', line 12

def marks
  HeadMusic::Style::Mark.for_each(extremes, fitness: HeadMusic::PENALTY_FACTOR**overage) if overage.positive?
end