Skip to main content

translate_diatonic_stream_to_string

Function translate_diatonic_stream_to_string 

Source
pub fn translate_diatonic_stream_to_string(
    elements: &[Searched<'_>],
) -> Result<Translation>
Expand description

Notes and rests as text of their steps, a letter for each note – A to G where it is as long as the note before, seven letters on where it is longer, fourteen where it is shorter – and Z for a run of rests: music21’s translateDiatonicStreamToString. A note tied on from the one before is left out.

§Errors

An element with no pitch that is not a rest.