-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Tuplet numbers not always put on the correct side of beamings if <stem> not defined #1449
Comments
You've added the same image twice ;) |
The two images are different, look at the tuplet numbers ;) Here are the XML files, sorry, I forgot about them. |
Oh, right, the numbers, sorry, for some reason I thought this was about the beams. |
Yes, exactly. They should always be on the beaming side if automatically positioned. Thank you Simon! |
Elaine Gould's Behind Bars (the reference on music engraving) also says the tuplet number should usually, but not always be on the side of the stem (pp. 197-198): Though all else being equal the preference is always above, e.g. if there are other potential conflicts with a below placement such as many ledger lines or slurs used. |
Nice reference! I'd add that that's absolutely true if you have no beamings and, ideally, a bracket. But if you don't have a bracket and have beamings, the number should always be on the beaming side ;) |
Also, is there a way to tell OSMD to put the tuplet numbers nearer to the beamings when you have this kind of situation (look mostly at the last bar): The distance between the group and the tuplet number is extremely high. Note: the above example includes the Which looks better from a "tuplet number distance" stand point, but those numbers should be on the beaming side. I am attaching the XML files of those examples as well. |
@sschmidTU any thoughts on my last post above? Thanks again. |
No, there is no way to do that currently. Vexflow does part of the y-placement. |
Ok, I see... but what about adjusting the side of the tuplet number, as I have explained? Is that something that can be fixed in OSMD? |
If you mean the first comment / issue opening comment, of course it's possible. |
Sounds good. Is that something that can be fixed soon/easily? Also, I am wondering if the second issue that you mentioned being a problem of Vexflow could have been fixed in the latest versions of it? Just wondering... otherwise I'll open an issue over there to have it fixed (or I can see if I can contribute to fix it). Thanks! |
It should be relatively easy, but you only see when you try it. |
Thanks Simon. I just need to know if the first problem (tuplet's number orientation) is something that can be fixed relatively soon (3-4 weeks?) from your team, or if I need to tackle the code myself and do a pull request in case I understand what to do to fix it. The code is very complex, and I might spend entire days to figure out what section is taking care of that. Thanks again ;) |
@sschmidTU please, look at this discussion on the Vexflow GitHub issues section: What version of Vexflow is OSMD using? Just wondering... thanks. |
Simon, by looking at OSMD source code it looks like it is still based on Vexflow 1.2.93. Can you confirm? If so, I guess you haven't updated it because of compatibility issues... maybe I can help with that in some way? |
Yes, it's 1.2.93, as you can see in the package.json. |
We do apply a VexFlowPatch with lots of improvements, see src/VexFlowPatch/readme |
I see Simon... I'll review everything and see if we can add a patch or something to handle that sort of tuplet display correctly. In the meantime, could you please confirm if you or someone on your team can tackle my first issue posted above within the next 3-4 weeks? I am talking about the orientation of the tuplet's numbers to be located on the beaming side when a bracket is not present. I plan to release a new musicXML viewer based on your technology on our website, and it'd be nice to have that issue fixed before its launch. Otherwise, I'll look into it myself. Thanks again! |
It's Sunday. You'll get an answer eventually. |
Of course, and sounds good. ;) Happy Sunday! |
While I was waiting for someone to answer my question above, I looked at the code, and I found that the tuplets are handled by this function inside the tuplet.js code inside VexFlowPatch/src/:
The fact is, it looks like that function is never called! Any ideas on that? I tried with the attached XML file. |
Can anyone help me here? I think I could fix the patch for tuplets myself and maybe submit a pull request, but I need to know how to "apply" those changes to Vexflow. Do I need to compile those patches aside? I have no idea how to do it. Any changes applied to those JS files are not shown if I run the debugging with "npm start" or if I do a built for distribution with "npm run build" I am eager to learn more about all this. Thanks. |
You need to run |
By the way, this is also mentioned in the |
Thank you Simon! I read the "readme.txt" but it wasn't clear how to do it. Your explanation above is perfect ;) Thanks again. |
Hello Simon and friends.
Here is another issue that should be tackled, and it is about tuplets.
Look at this example below, which includes the
<stem>
directive to tell the viewer how to orientate the stems (either "up" or "down"):As you can see, the tuplet numbers are located on the correct side of the group beaming.
Now, look at the same example without the
<stem>
directive, which should leave the rendering decision of all stem orientations to the OSMD engine:As you can see, most of the tuplet numbers are located on the wrong side of the beaming despite all stems are correctly automatically oriented. Is that something that can be fixed?
Eager to know your thoughts about it.
Thanks!
The text was updated successfully, but these errors were encountered: