8000 Automatically determine Y-extent in systems · Issue #267 · jperon/lyluatex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Automatically determine Y-extent in systems #267

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

Open
uliska opened this issue Jul 29, 2019 · 0 comments
Open

Automatically determine Y-extent in systems #267

uliska opened this issue Jul 29, 2019 · 0 comments
Labels

Comments

@uliska
Copy link
Collaborator
uliska commented Jul 29, 2019

https://lists.gnu.org/archive/html/lilypond-user/2019-07/msg00300.html

gave me an idea that might be somewhat complicated and not particularly efficient, but it might be worth taking a look.

It would be nice to know the exact vertical position of the staff symbol(s) in a PDF, which is not possible so far. Use cases: vertically position inline-aligned snippets to the text's baseline, offsetting the first system on a page to have the stafflines align with the text.

It should be possible to have LilyPond record the Y-extent properties of all grobs in a system/Staff, then determine the largest and smallest numbers and store them in an aux file. If we know that the "absolute Y-extent" of a staff's grobs is e.g. #'(-5 . 6.3) we know that the score items go 4.3 staff spaces above and 3 staff spaces below the staff symbol, and we can somehow determine the vertical position of the staff symbol relative to the image file.

NOTE: I'm not sure how that would have to be handled with more than one staff per system, and Dynamics, and lyrics etc.

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

No branches or pull requests

1 participant
0