Skip to main content

transposition_steps

Function transposition_steps 

Source
pub fn transposition_steps(
    diatonic: i64,
    semitones: i64,
) -> Result<(IntegerType, IntegerType)>
Expand description

music21’s _transpositionFromAttrs before it makes the interval: the generic interval and the semitones of a trans.diat and trans.semi.

MEI counts steps from a unison of 0, music21 from 1; a transposition past an octave written with its steps inside one has the octaves put back.