Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIXED. abjad.beam(..., stemlet_length=0.75) formats \revert correctly. #1542

Merged
merged 1 commit into from Apr 20, 2023

Conversation

trevorbaca
Copy link
Member

EXAMPLE.

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

OLD:

    >>> 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:

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

CHANGED. abjad.illustrators.make_piano_score() includes explicit voices.

OLD:

    >>> score = abjad.illustrators.make_piano_score()
    >>> string = abjad.lilypond(score)
    >>> print(string)
    \context Score = "Score"
    <<
        \context PianoStaff = "Piano_Staff"
        <<
            \context Staff = "Treble_Staff"
            {
            }
            \context Staff = "Bass_Staff"
            {
            }
        >>
    >>

NEW:

    >>> score = abjad.illustrators.make_piano_score()
    >>> string = abjad.lilypond(score)
    >>> print(string)
    \context Score = "Score"
    <<
        \context PianoStaff = "Piano_Staff"
        <<
            \context Staff = "Treble_Staff"
            {
                \context Voice = "Treble_Voice"
                {
                }
            }
            \context Staff = "Bass_Staff"
            {
                \context Voice = "Bass_Voice"
                {
                }
            }
        >>
    >>

    EXAMPLE.

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

    OLD:

        >>> 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:

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

CHANGED. abjad.illustrators.make_piano_score() includes explicit voices.

    OLD:

        >>> score = abjad.illustrators.make_piano_score()
        >>> string = abjad.lilypond(score)
        >>> print(string)
        \context Score = "Score"
        <<
            \context PianoStaff = "Piano_Staff"
            <<
                \context Staff = "Treble_Staff"
                {
                }
                \context Staff = "Bass_Staff"
                {
                }
            >>
        >>

    NEW:

        >>> score = abjad.illustrators.make_piano_score()
        >>> string = abjad.lilypond(score)
        >>> print(string)
        \context Score = "Score"
        <<
            \context PianoStaff = "Piano_Staff"
            <<
                \context Staff = "Treble_Staff"
                {
                    \context Voice = "Treble_Voice"
                    {
                    }
                }
                \context Staff = "Bass_Staff"
                {
                    \context Voice = "Bass_Voice"
                    {
                    }
                }
            >>
        >>
@trevorbaca trevorbaca added the bug label Apr 20, 2023
@trevorbaca trevorbaca added this to the 3.17 milestone Apr 20, 2023
@trevorbaca trevorbaca self-assigned this Apr 20, 2023
@trevorbaca trevorbaca merged commit 0c45ecf into main Apr 20, 2023
2 checks passed
@trevorbaca trevorbaca deleted the trevor/fix-stemlet-length-formatting branch April 20, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant