Skip to main content

close_on_tonic

Function close_on_tonic 

Source
pub fn close_on_tonic(steps: &[Interval]) -> Result<Vec<Interval>>
Expand description

The steps with the last one respelled so that they climb from C4 to exactly C5: music21’s _closeOnTonic. Steps that already do are returned as they are, and so are steps spanning anything but an octave.

§Errors

A step that cannot move a pitch.