Basically, this is
https://gitlab.com/lilypond/lilypond/-/issues/4157 <https://gitlab.com/lilypond/lilypond/-/issues/4157>

Thanks for looking into it. I just wanted to make sure it is either me being stupid or a bug/weirdness in LP. Since apparently it is known already that's fine with me.

The problem is related to \RemoveAllEmptyStaves. In essence, horizontal spacing is computed as if the staves that are being removed were still present. If you comment out the \RemoveAllEmptyStaves line, you will see that the objects taking this space are the clefs and time signatures.

FWIW my expectation would be that staves with no content at all have no impact whatsoever on the layout when I say \RemoveAllEmptyStaves.

It's not clear from your example what the \guitarPart is for,

I removed the content for the sake of simplicity.

In my real world application I do add the content conditionally (or leave it out).

Kind regards,
Michael
--
 Michael Gerdau       email: m...@qata.de
 GPG-keys available on request or at public keyserver

Reply via email to