-
Notifications
You must be signed in to change notification settings - Fork 38
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
Ledger Line confusion #79
Comments
Ah @bitsybabe I finally got around to reading your issue - you are using E011 offset to be two ledger lines together, but E011 is actually "staff2Lines", whereas "legerLine" is E022. See this page for what I am talking about. Maybe this answers both of our questions? I can use what you've been using and you can use what I've been using? Edit: Just realized I already tried offsetting the staff using staffPosRaise[x], staffPosLower[x] etc., but it doesn't work - were you doing this by offsetting the actual font instead of the glyph? |
I am attempting to create a dynamic staff that adds ledger lines above or below the staff, as needed by the pitch.
I am using characters E010-E014 to represent 1 - 4 lines. The code I wrote was tested using E012, the 3 ledger line glyph, because that's roughly the maximum I'd use. The code places the glyph at a certain y-offset to the staff and adds +1 to the note's x-offset so it looks centered on the note.
Then I tested the 2-line glyph, E011. Instead of being at the same offset, it's at a completely different offset. In fact EACH of the ledger lines has a UNIQUE offset!
This is completely odd to me. WHY wouldn't you have kept the lines in the same place as you add them? They are the same distance apart, why could they not be the same position in the glyph frame?
I'm sure if Steinberg is using this font, there must be a better way to add ledger lines than what I thought: determine the offset and just change the glyph as the pitch rises or falls. Now, it looks like I not only have to change the glyph, but its offset! No bueno. WHY? Shouldn't glyphs in a font all have a common baseline?
Can someone please explain to me why this is awesome?
The text was updated successfully, but these errors were encountered: