pitchtypes.utils

Functions

diatonic_steps_from_fifths(fifth_steps)

Return the number of diatonic steps corresponding to the number of steps on the line of fifths (4 * fifth_steps).

fifths_from_diatonic_pitch_class(pitch_class)

Return the number of steps along the line of fifths corresponding to a diatonic pitch class.

fifths_from_generic_interval_class(generic)

Return the number of steps along the line of fifths corresponding to the given generic interval: (2 * generic - 1) % 7 - 1.