Jump to content

Naming a whole GrandStaff

From LilyPond wiki
Revision as of 22:36, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

You can have a name for the whole GrandStaff in addition to individual Staffs.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=115

\score {
  \context GrandStaff <<
    \context Staff = "treble" {
      \set GrandStaff.instrumentName = "Violini  "
      \set Staff.instrumentName = " vn I" { c''4 }
    }
    \context Staff = "bass" { \set Staff.instrumentName = " vn II" c''4 }
  >>
}