-
Notifications
You must be signed in to change notification settings - Fork 667
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
issue with generateBeams and mixed subdivisions #1589
Comments
Thanks! Very interesting issue. :-) |
Hey guys, any news regarding this issue? |
could you add a jsfiddle with this working variant? |
Yup, there you go: Again, the only difference is having inside the triplet 2 eighth notes instead of a quarter note |
@nitzanrh I think that the problem is that the third note was not in the array. |
Not sure I follow...
As mentioned, if the first beat is divided into 3 eighth notes - the beaming of the second beat is correct. Strangely enough, the order in which the first beat is divided seems to make a difference: Curiouser and curiouser... |
@nitzanrh VexFlow represents what it is requested. VexFlow does not make many consistency checks. |
@rvilarl I'll try to explain my situation better: I'm using vexflow to render rhythmic notation for drummers. One of the unique features of the app is that it generates the notes (somewhat) randomly - therefore I'm counting on generateBeams to handle the beaming automatically. In most cases it works great. However when there is a measure with one beat divided into triplets and the other beat divided into 16th notes, generateBeams does not handle it properly. If I were to manually manage the beams then of course it would work as expected, but since the notes are random I'm dependent on generateBeams to handle the beaming. To your question, I'm trying to represent the following notes and handle the beaming using generateBeams (ie without setting the beaming manually) Hope this makes things clearer :) |
Ok I see, I misundrestood the problem statement. I will look into what generateBeams does. |
@nitzanrh the code is really complex. Have you tried to look into it? It is strange how the notes in the front interfere with the auto beaming. I do not understand why the two initial notes produce the confussion. If tey are left out, the result is good. |
I'll try to look into generateBeams and see if I can come up with anything :) |
@rvilarl |
https://jsfiddle.net/qztxvrL1/
Notice that the 8th note isn't beamed to the 2 Sixteenth notes, although it should.
If you modify the code and change the Quarter Note Triplets into 2 Eight Note Triplets, the beaming works as expected.
I didn't manage to replicate this issue when using only triplets or only sixteenth notes. I assume this has something to do with the Quarter Note Triplet disrupting the internal division of the stave into beats, but it's just a hunch.
Cheers,
Nitzan
The text was updated successfully, but these errors were encountered: