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

NEW. Added abjad.AfterGraceContainer.fraction property. #1583

Closed trevorbaca closed 2 months ago

trevorbaca commented 2 months ago
voice = abjad.Voice("c'4 d'4 e'4 f'4")
notes = [abjad.Note("c'16"), abjad.Note("d'16")]
after_grace_container = abjad.AfterGraceContainer(notes, fraction=(15, 16))
abjad.attach(after_grace_container, voice[1])

string = abjad.lilypond(voice)
print(string)
\new Voice
{
    c'4
    \afterGrace 15/16
    d'4
    {
        c'16
        d'16
    }
    e'4
    f'4
}

Closes #1505.

FIXED. \afterGrace + \pitchedTrill contention.

Closes #1582.