-
Notifications
You must be signed in to change notification settings - Fork 36
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
Cross-Staff Beaming #154
Comments
@dfober any hints where to start chasing this one in the code? |
beaming is computed in GRBeam.cpp, more precisely in |
Just for memo: The problem in this issue is related to the guidolib/src/engine/graphic/GRBeam.cpp Line 398 in 6d1fb44
the |
it looks like the beam is drawn in the wrong context e.g. the coordinates are relative to the first staff and it's drawn with the second one. |
Thank you @dfober . It seems like the problematic Beam here is being decoded as guidolib/src/engine/graphic/GRBeam.cpp Line 1337 in 6d1fb44
What are smallerBeam in this context?! If I comment that |
@dfober I managed to get the following result by doing two things:
Whenever you have some time, we can go over the solution since I'm not sure if I understand the intent of Once this is done the long beam's slope/initial points can be fixed more easily given the nested beams. |
I am half-way done! A particular challenge would be this excerpt where the nested beams (aka
|
- Fix nested beaming inclusion in fSmallerBeam iin GRVoiceManager - Fix parent beam position offset with smaller beams when on the system level
Interesting.. Is there a branch with your hypothesis? |
No, there is no specific branch. I checked by correcting the y coordinates manually for this specific score (by subtracting the 'y' position of the staff) i.e. GRBeam::OnDraw :
where 400 is the second staff position().y |
The changes I made in this PR actually does this: check changes in GRBeam.cpp: removing the return statement will allow the tellPosition to reach the end where we fix offsets. On top of the above: changes in GRVoiceManager fixes how beams are nested so that the second beam renders as being nested. Do you remember which issue was being broken in the regression test? |
hmmmm I guess this is better than what we have. Let's commit this. I will then break this into several tickets as I can see what the problems are. |
that's done (pushed). I'll go on with this issue. |
@dfober Here is the unit test that gathers several beaming issues all-together as discussed a few days back:
|
fixed (could be improved) |
This is an excerpt from Debussy's Children's Corner
Leads to

Whereas it should look like this:

Two issues:
f-1/1
The text was updated successfully, but these errors were encountered: