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 support for tuplets and beams #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ywsang
Copy link
Collaborator

@ywsang ywsang commented Aug 14, 2020

Adds the vf-tuplet and vf-beam components, which correspond to the Tuplet and Beam elements in VexFlow.
These two components can be children of a vf-voice.

This PR also updates the logic inside vf-voice to account for having a <slot> for child elements. vf-voice loops over the slotted elements to maintain a reference to their order and establish counters for how many child elements it has.

These counters are used to check whether or not vf-voice has received data from all of its children, and the order is used to reconstruct the array of notes that makes up the vf-voice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant