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 duplicated dynamics corner case. #1554

Merged
merged 1 commit into from Jul 24, 2023

Conversation

trevorbaca
Copy link
Member

In Abjad 3.18, this fails to raise an exception:

voice = abjad.Voice("c'4")
bundle = abjad.bundle(
    abjad.Dynamic("p"),
    abjad.Tweak(r"- \tweak color #red"),
)
abjad.attach(bundle, voice[0])
abjad.attach(abjad.Dynamic("f"), voice[0])
string = abjad.lilypond(voice)
print(string)

As of this commit, the code above now raises
abjad.PersistentIndicatorError.

Closes #1553.

ALSO:

Added to-barline = ##f to arrowed line styles.

These are Abjad's two arrowed line styles:
* abjad-dashed-line-with-arrow
* abjad-solid-line-with-arrow

Both now include ...

- \tweak to-barline ##f

... because arrow line styles should always connect right to their stop leaf; allowing to-bareline = ##t means that arrow line styles sometimes leave a gap before their stop leaf.

In Abjad 3.18, this fails to raise an exception:

    voice = abjad.Voice("c'4")
    bundle = abjad.bundle(
        abjad.Dynamic("p"),
        abjad.Tweak(r"- \tweak color #red"),
    )
    abjad.attach(bundle, voice[0])
    abjad.attach(abjad.Dynamic("f"), voice[0])
    string = abjad.lilypond(voice)
    print(string)

As of this commit, the code above now raises
abjad.PersistentIndicatorError.

Closes #1553.

ALSO:

Added to-barline = ##f to arrowed line styles.

These are Abjad's two arrowed line styles:
    * abjad-dashed-line-with-arrow
    * abjad-solid-line-with-arrow

Both now include ...

    - \tweak to-barline ##f

... because arrow line styles should always connect right to their stop
leaf; allowing to-bareline = ##t means that arrow line styles sometimes
leave a gap before their stop leaf.
@trevorbaca trevorbaca added the bug label Jul 24, 2023
@trevorbaca trevorbaca added this to the 3.19 milestone Jul 24, 2023
@trevorbaca trevorbaca self-assigned this Jul 24, 2023
@trevorbaca trevorbaca merged commit 0796e1c into main Jul 24, 2023
2 checks passed
@trevorbaca trevorbaca deleted the trevor/fix-duplicate-dynamics-corner-case branch July 24, 2023 22:30
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.

Fix duplicate dynamics corner case
1 participant