pitchtools.add_staff_spaces

abjad.tools.pitchtools.add_staff_spaces(pitch, staff_spaces)

Return diatonic integer scale degree from 1 to 7 corresponding to pitch transposed by integer number of staff_spaces.

  • pitch: any Abjad Pitch instance.
  • staff_spaces: any integer.
abjad> pitch = Pitch(13)
abjad> pitch.degree
1
abjad> pitchtools.add_staff_spaces(pitch, 0)
1
abjad> pitchtools.add_staff_spaces(pitch, 1)
2
abjad> pitchtools.add_staff_spaces(pitch, 2)
3

Previous topic

pickle.load

Next topic

pitchtools.apply_octavation

This Page