Jump to content

Adding an extra staff: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
An extra staff can be added (possibly temporarily) after the start of a piece.
An extra staff can be added (possibly temporarily) after the start of a piece.


<lilypond version="2.24.0">
<lilypond version="2.24">
\score {
\score {
   <<
   <<

Revision as of 18:45, 16 November 2025

An extra staff can be added (possibly temporarily) after the start of a piece.

\version "2.24"

\score {
  <<
    \new Staff \relative c'' {
      c1 | c | c | c | c
    }
    \new StaffGroup \relative c'' {
      \new Staff {
        c1 | c
        <<
          {
            c1 | d
          }
          \new Staff {
            \once \omit Staff.TimeSignature
            c1 | b
          }
        >>
        c1
      }
    }
  >>
}