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

Add abjad.FeatherBeamContainer #1571

Open
trevorbaca opened this issue Nov 30, 2023 · 0 comments
Open

Add abjad.FeatherBeamContainer #1571

trevorbaca opened this issue Nov 30, 2023 · 0 comments
Assignees
Milestone

Comments

@trevorbaca
Copy link
Member

abjad.FeatherBeamContainer will subclass abjad.Container.

abjad.FeatherBeamContainer will steal much of the logic in rmakers.accelerando() and rmakers.feather_beam().

rmakers.accelerando() will be updated to return a list of feather-beam containers. (rmakers.accelerando() currently returns a list of tuplets.)

Users will be able to iterate feather-beam containers separately from tuplets, grace containers, and all other types of containers, which will make patterns like this straightforward:

for container in abjad.select.containers(voice):
    if isinstance(container, abjad.FeatherBeamContainer):
        leaves = abjad.select.leaves(container)
        abjad.beam(leaves, beam_rests=True, stemlet_length=0.75)
@trevorbaca trevorbaca added this to the 3.20 milestone Nov 30, 2023
@trevorbaca trevorbaca self-assigned this Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant