> On 5 Dec 2024, at 01:17, Ernie Braganza <ernie.braga...@gmail.com> wrote:
> 
> 
> I have looked through some examples and I can't figure out how to add four 
> measures with extra staves for a harmony part. I keep getting an extra line 
> above the staff group I want (see picture). How do I avoid the extra blank 
> staves from being inserted?
> 
> Thanks for your help.

I think you're looking for a setup like this snippet

https://lsr.di.unimi.it/LSR/Item?id=307

See also
https://lilypond.org/doc/v2.24/Documentation/notation/modifying-single-staves#hiding-staves


> 
> Here's my code:
> 
> \version "2.24.0"
> \score {
>   <<
> % Start with one staff line
> 
>     \new Staff \relative c'' {
>       c1| c| c| c|
>       \break
> % Create 4 measures with extra staves for harmony
> 
>       \new StaffGroup \relative c'' {
>         \once \omit Score.TimeSignature
>         <<
>           \new Staff {
>             g1|g|g|g|
>           }
>           \new Staff {
>             e1|e|e|e|
>           }
>         >>
>       }
>       \break
> % Go back to just one staff line
> 
>       c1| c| c| c|
>     }
>   >>
> }
> <Extra Staff.png>

Reply via email to