New syntax for separating gabc and nabc voices#1672
New syntax for separating gabc and nabc voices#1672davidweichiang wants to merge 1 commit intogregorio-project:developfrom
Conversation
- & advances to the next voice, but doesn't cycle back to the first voice. - | is for cycling back to the first voice, but for backwards compatibility also can be used in place of &.
|
This works as far as I know, but I just left it as a draft in case there was discussion about what the syntax should look like. |
|
What would removing the |
|
My recollection is that the nabc voices are stored in an array, so the Tangentially, this is also related to a question that came up on the mailing list (https://groups.google.com/g/gregorio-users/c/IwslfmnTPDk); currently |
|
So which would be easier, in your opinion, removing the |
|
I think they're both doable but the latter would be easier (and orthogonal to this PR). I actually kind of like the |
|
This for me went on the back burner when @lbssousa said that "this proposal is not needed anymore." If it is still needed, then let's iron out the syntax. I'm looking at this PR and do not understand why I chose this syntax. I would think it would be better, and still backwards compatible, to make |
In fact, I've said "this proposal was not needed anymore" for syntax highlighting purposes (since a LSP server for Gregorio could be smart enough to identify the GABC/NABC alternations by semantics), but it would still be useful for other purposes (getting rid of
I agree (this syntax would resemble the one adopted in MusixTeX: [*] One suggestion is implementing a "multi-stage parsing" of GABC files. In the first stage, the parser would calculate the maximum number of NABC voices within a snippet in the score (which would be easier to do with this new proposed syntax), and set |
Closes #1667.
&advances to the next voice, but doesn't cycle back to the first voice.|is for cycling back to the first voice, but for backwards compatibility also can be used in place of&.Currently,
nabc-lines:is still required.