Skip to content

Is it possible to get bounds for tempo and time signature? #1127

Answered by Danielku15
matevzsenlab asked this question in Q&A
Discussion options

You must be logged in to vote

No, this is unfortunately currently not possible out of the box. There is no API which would allow you to request the bounding box of certain elements. Technically it would be possible to add such an API (e.g. for highlighting or annotation purposes). I added an item to the roadmap as potential future feature: https://github.com/orgs/CoderLine/projects/12?pane=issue&itemId=23947500

If you are using SVG output, you could rely on certain patterns to get the bounding box. alphaTab is using https://www.smufl.org/ for rendering which means all symbols have this this pattern with the SMuFL character codes as text:

https://github.com/CoderLine/alphaTab/blob/develop/src/platform/svg/CssFontSvgCan…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matevzjecl
Comment options

Answer selected by Danielku15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants