SoundsFromSound wrote:
... how I can get the
"Violin" instrument name to show up next to the topmost staff?
Well, in 2009 Neil Puttock said you can't, and said why.
http://lists.gnu.org/archive/html/lilypond-user/2009-03/msg00123.html
If that still applies, you will need a workaround.
The X-offset workaround suggested there seems very fragile.
So here is a hack that hangs a markup on the left side of the ossia.
It needs some fine tuning, but should illustrate the principle.
Cheers,
Robin
\version "2.19.80"
addOssiaName =
#(define-scheme-function (name padding) (markup? number?)
#{
\override Staff.StaffSymbol.stencil = #(lambda (grob)
(ly:stencil-combine-at-edge (ly:staff-symbol::print grob)
X LEFT (grob-interpret-markup grob name) padding))
#})
\score {
<<
\new Staff = "Testing"
\with { instrumentName = "Top" }
\relative c'' { c1 | c | c | c | }
\new StaffGroup
\relative c'' {
\new Staff \with { instrumentName = "Bottom" }
{ c1 | c <<
{ c1 | d }
\new Staff \with { alignAboveContext = "Testing" }
{ \once \omit Staff.TimeSignature
\addOssiaName "Violin" 2
c1 | b }
>>
}
}
>>
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user