Class: HeadMusic::Style::Guidelines::StepToFinalNote
- Inherits:
-
Annotation
- Object
- Annotation
- HeadMusic::Style::Guidelines::StepToFinalNote
show all
- Defined in:
- lib/head_music/style/guidelines/step_to_final_note.rb
Overview
Constant Summary
collapse
- MESSAGE =
"Step to the final note."
Instance Method Summary
collapse
Instance Method Details
#last_melodic_interval ⇒ Object
18
19
20
|
# File 'lib/head_music/style/guidelines/step_to_final_note.rb', line 18
def last_melodic_interval
@last_melodic_interval ||= melodic_intervals.last
end
|
#marks ⇒ Object
8
9
10
|
# File 'lib/head_music/style/guidelines/step_to_final_note.rb', line 8
def marks
HeadMusic::Style::Mark.for_all(notes[-2..]) unless step_to_final_note?
end
|
#step_to_final_note? ⇒ Boolean
14
15
16
|
# File 'lib/head_music/style/guidelines/step_to_final_note.rb', line 14
def step_to_final_note?
last_melodic_interval&.step?
end
|