Jump to content

Adding an extra staff: Difference between revisions

From LilyPond wiki
No edit summary
m New category
Tags: Mobile edit Mobile web edit
Line 30: Line 30:
[[Category:Contexts and engravers]]
[[Category:Contexts and engravers]]
[[Category:Really simple]]
[[Category:Really simple]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Revision as of 23:15, 21 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
      }
    }
  >>
}