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

Create continuation measures #257

Open
jaredjj3 opened this issue Jan 8, 2025 · 0 comments
Open

Create continuation measures #257

jaredjj3 opened this issue Jan 8, 2025 · 0 comments

Comments

@jaredjj3
Copy link
Collaborator

jaredjj3 commented Jan 8, 2025

I expect a lot of users to consume vexml renderings using a mobile device. It's possible for a single measure to not fit in the viewport. I'm requesting a mechanism to detect when a measure is too big, and then to fragment it until it fits. Each fragment would display in a different system with obvious indicators that the measure is being continued.

There are two main parts to this project:

  • We need an algorithm to fragment a measure. Since width is the constraint, my vote would be to find the column of notes that's approximately in the middle. After that, fragment using the measure beat. If there are already fragments, maybe follow the same algorithm on the fragment that's too big.
  • We need to update the rendering hierarchy to behave well with measures that span multiple systems. At the time of writing, Refactor vexml for release #256 is still in flight, so I'm not sure where this will land.
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

No branches or pull requests

1 participant