Thank you very much, Robin. This is exactly what I was looking for. When trying to utilize this in a specific score where I needed this indentation, it only works partially; The staff is indented as desired, but the instrument name is not printed.
1.
I created a file with the script named pseudoIndent.ily
2.
Included it in my lilypond file using \include
3.
Added <\pseudoIndent \markuplist { * "Orgel" } 12.5> after the initial rest
bars in one of the piano staff voices (at line 526 in the lilypond file)
I read the caveats and did my best to try to understand the script, but could
not see why it should not work in my specific file. I also tried to add
multiple voices and staffs within the piano staff of the file you provided, but
I was not able to replicate the error therein.
Are you able to see what I am doing wrong here?
All the best,
Eirik
________________________________
Fra: Robin Bannister <[email protected]>
Sendt: søndag, 14. desember 2025 23:53
Til: Eirik B <[email protected]>; [email protected]
<[email protected]>
Emne: Re: Print instrument name of staff whose empty section from the start was
removed with RemoveAllEmptyStaves
Eirik B wrote:
> Is there a way to (i) give the entire staff a new indent similar to the
> indent at the start of the piece (to accommodate space for the instrument
> name) and (ii) print the instrument name on the staff when it first becomes
> visible?
Here is one way. Be sure to read the caveats in the wiki text.
Cheers,
Robin
Å_kom_naa_med_lovsang.ly
Description: Å_kom_naa_med_lovsang.ly
