lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding extra staff line


From: Ernie Braganza
Subject: Re: Adding extra staff line
Date: Wed, 4 Dec 2024 19:39:29 -0500

Thanks. I'll work with that code. Danke

On Wed, Dec 4, 2024 at 7:37 PM Hans Aikema <hans.aikema@aikebah.net> wrote:

On 5 Dec 2024, at 01:17, Ernie Braganza <ernie.braganza@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

[Prev in Thread] Current Thread [Next in Thread]