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 better hit testing for beats #6

Open
infojunkie opened this issue May 14, 2022 · 0 comments
Open

Add better hit testing for beats #6

infojunkie opened this issue May 14, 2022 · 0 comments

Comments

@infojunkie
Copy link
Owner

infojunkie commented May 14, 2022

When the user touches the sheet, we want to position the cursor at the nearest beat.

Right now, we only detect direct hits on the notes SVG elements, but these take up a very small percentage of the surface of their beat, which is a rectangular slice of a staff or system of staves.

We need to compute these beat rectangles and store them for fast query, just like we do for measure timestamp maps.

@infojunkie infojunkie transferred this issue from infojunkie/ireal-musicxml Feb 24, 2023
@infojunkie infojunkie changed the title Better hit testing for beats Add better hit testing for beats Jun 6, 2023
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