Jump to content

Naming a whole GrandStaff: Difference between revisions

From LilyPond wiki
No edit summary
m New category
 
Line 18: Line 18:
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Text]]
[[Category:Text]]
[[Category:Contexts and engravers]][[Category:Snippet]]
[[Category:Contexts and engravers]]
[[Category:Snippet]]

Latest revision as of 23:26, 21 November 2025

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

\version "2.24"

%% 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 }
  >>
}