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

Fix `abjad.beam(..., stemlet_length=None)` formatting #1541

Closed trevorbaca closed 1 year ago

trevorbaca commented 1 year ago

EXAMPLE.

>>> voice = abjad.Voice("c'8 d' e' f'")
>>> abjad.beam(voice[:], stemlet_length=0.75)
>>> string = abjad.lilypond(voice)

OLD: The position of the \revert string is correct:

>>> print(string)
\new Voice
{
    \override Staff.Stem.stemlet-length = 0.75
    c'8
    [
    d'8
    e'8
    \revert Staff.Stem.stemlet-length
    f'8
    ]
}

NEW: the position of the \revert string is correct:

>>> print(string)
\new Voice
{
    \override Staff.Stem.stemlet-length = 0.75
    c'8
    [
    d'8
    e'8
    f'8
    ]
    \revert Staff.Stem.stemlet-length
}