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
234 stars 41 forks source link

Change `\times` to `\tuplet` #1586

Closed trevorbaca closed 2 weeks ago

trevorbaca commented 2 weeks ago

OLD. Versions of Abjad earlier than 3.20 format Abjad tuplet objects with LilyPond's \times command:

tuplet = abjad.Tuplet("3:2", "c'4 d' e'")
string = abjad.lilypond(tuplet)
print(string)
\times 2/3
{
    c'4
    d'4
    e'4
}

NEW. Abjad 3.20 formats Abjad tuplet objects with LilyPond's \tuplet command:

tuplet = abjad.Tuplet("3:2", "c'4 d' e'")
string = abjad.lilypond(tuplet)
print(string)
\tuplet 3/2
{
    c'4
    d'4
    e'4
}