Heiko Schill wrote:

Is there a way to get the desired output somehow?


Your code starts by defining the music for each voice.
Fair enough.

But these definitions seem to expect that Cello will be second and Voice will be third, the situation set up in the first score.

The second score defines a different order for the staves, but uses the voice definitions unchanged, invalidating their expectations.
The third score has the same muddle, labeling the d1 sequence 'Voice'.



Any time you decide to change the voice order, you need to revise your \markuplist calls accordingly. This is easier to oversee if they are kept in a single code section, as is sometimes done for line breaks.

An example of this is shown in the lower demo:
- \pseudoIndent calls are in 'demo'
- the music lines are in 'demoHi' and 'demoLo'
Or maybe manage just the markuplist calls as a group of variables?

And in complicated staff grouping cases, display any indexing changes!
See the recent example at
https://lists.gnu.org/archive/html/lilypond-user/2025-12/msg00123.html
and
https://lists.gnu.org/archive/html/lilypond-user/2025-12/msg00129.html


Cheers,
Robin








Reply via email to