Replies: 2 comments
-
|
Beaming definitely is one of the older and less advanced features in alphaTab. I never extended much there. After checking some references there is definitely a lot of room for improvement:
I think it makes sense to add some construct which allows configuring such options. Some rules are bar-wide, others maybe specific to a group. We don't need to add all features directly, but we should be prepared to have a good spot for them. Most file formats are rather explicit on individual beams and the software calculates beams while writing. For a start, having custom rules is a good step forward. I think having the info as part of the data model is the best path (not a setting). For other input formats than alphaTex developers would need to reconfigure the data model after loading. I'll add a workitem for this soon. In the meanwhile you could try to calculate the beam groups in your own code and apply the forcejoin/forcebreak to the datamodel. The scoreLoaded event is a good spot for adding such things. References: https://musescore.org/en/handbook/4/beams |
Beta Was this translation helpful? Give feedback.
-
|
#2399 added to track custom beaming. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I haven't looked at the beaming logic code, but I think alphaTab groups quavers and smaller in groups of up to one beat. Consider:
However, I normally see quavers written in larger groups – generally groups of four. You can tell alphaTab to render this way:
But writing
{beam merge}gets repetitive for longer passages.I think (but am not certain!) the only rule is "beaming should not cross the midpoint of a bar". I have examples in print music of odd numbered beam groups, and beaming starting offbeat.
Here's some examples I have from various publishers, both for guitar and otherwise. Hal Leonard (drop D tuning):

Wise Publications:

Backbeat Books:

Here's a fun example from Chopin Op 9 No 1, which is in 6/4 time. This is from the urtext edition, but Schirmer engraves it identically. It shows beaming of up to half a bar, apart from the tuplet group in the right hand at the end of bar 3:

I think increasing the default group size would make alphaTab's default rendering more idiomatic and easier to read.
Beta Was this translation helpful? Give feedback.
All reactions