Replies: 2 comments 9 replies
-
Indeed alternative endings are a missing feature until now in alphaTex. To indicate better the relation on repeats I would maybe rather go for a metadata tag like
Looking at the overall alphaTex syntax, in many effects we use parenthesis to group multiple values. The parenthesis can be skipped if there is only 1 value. The parser is implemented a recursive decent parser and extending it should be usually quite simple, you can give it a try if you're interested into adding this feature. With a bit of reading you should be able to understand quite quickly how the logic works. Example on how beats handle the parsing of either single or multiple values in parenthesis: Place where the existing repeat metadata tags are handled: The rest of alphaTab should already take care that the repeats are handled correctly. Of course if somebody would write messy repeats, alphaTab would behave like this too. There is no file extension for alphaTex because I never envisioned it as format to be written into files, but rather to store it in databases or providing it easily through APIs. If I would need to think of one, I guess it would be maybe |
Beta Was this translation helpful? Give feedback.
-
Another related feature request that can also be used to help show & verify the repeat functionalities is "Unfolding" repeats (can be seen in the lilypond example previously linked). This would probably be best suited as an |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thanks for making this project. I'm having very fun playing with it.
The only feature (yet) I wish alphaTex had support for is Alternative endings to repeats. Would appreciate if it was added.
For reference: http://lilypond.org/doc/v2.23/Documentation/notation/long-repeats#alternative-endings
Perhaps the syntax could be:
but I haven't spend much time checking how the parser works and what it can realistically handle.
What do you think?
P.S. Is there a conventional file name extension for alphaTex files?
Beta Was this translation helpful? Give feedback.
All reactions