lilypond-user
[Top][All Lists]
Advanced

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

Re: Manipulating instrument names and staff group names


From: Kieren MacMillan
Subject: Re: Manipulating instrument names and staff group names
Date: Fri, 29 Oct 2021 15:04:11 -0400

Hi all,

> I don’t know of a good way to get this

There are a whole bunch of ways to clothe that particular cat… Here’s one:

%%%  SNIPPET BEGINS  %%%
\version "2.22.1"

\paper { indent = 1\in }

\layout {
    \context {
       \Score
       \override InstrumentName.self-alignment-X = #RIGHT
       \override InstrumentName.padding = #2
    }
}

\new StaffGroup
  \with { instrumentName = \markup \concat { \rotate #90 { \center-column { 
"Sax." \raise #1.5 \draw-line #'(10 . 0) \lower #3.5 " " } } } }
<<
  \new Staff \with { instrumentName = "Sax 1" } s1
  \new Staff \with { instrumentName = "Sax 2" } s1
>>
%%%  SNIPPET BEGINS  %%%

Some syntactic sugar — and maybe a really well-designed engraver — would be 
nice, though…

Hope this helps!
Kieren.
________________________________

Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kieren@kierenmacmillan.info




reply via email to

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