Abjad / abjad

Abjad is a Python API for building LilyPond files. Use Abjad to make PDFs of music notation.
https://abjad.github.io
GNU General Public License v3.0
239 stars 39 forks source link

Moved two converter methods from abjad.StaffPosition to abjad.Clef. #1433

Closed trevorbaca closed 2 years ago

trevorbaca commented 2 years ago

CHANGED. Moved two converter methods abjad.StaffPosition to abjad.Clef:

OLD: abjad.StaffPosition.from_pitch_and_clef(abjad.NamedPitch("c'"), abjd.Clef("alto"))
NEW: abjad.Clef("treble").to_staff_position(abjad.NamedPitch("c'"))

OLD: abjad.StaffPosition(-2).to_pitch(abjad.Clef("treble"))
NEW: abjad.Clef("treble").to_pitch(abjad.StaffPosition(-2))

Closes #1432.