As a guitarist I barely use those codes ; thanks for showing me such a clear "lily-like" solution.
One thing though : I find the orchestral brace absolutely uggly (for that size I mean), reason why I didn't mention it in my code.
I think that a
LargeCurlyBracket, shuch as Mario's pic, for orchestral grouping, is laking in the lily fonts and would be much more elegant.
2013/3/7 Kieren MacMillan
<address@hidden>
Hello Mario,
While I admire the posted solutions, perhaps using real staff groupings and built in braces would be more Lilypond-like?
See the attached snippet.
Note: I'm not a big fan of all the extra-offset work I had to do (maybe others can suggest better methods to accomplish the same thing), but this should get you started.
Hope this helps!
Kieren.
__________________
\version "2.17.13"
someMusic = \relative c' { c1 }
\paper { indent = 2\in }
\layout {
\context {
\Staff
\override InstrumentName.padding = #-10.5
\override InstrumentName.self-alignment-X = #0
\override InstrumentName.baseline-skip = #2.25
\override InstrumentName.font-size = #-0.5
}
\context {
\StaffGroup
\name ViolinGroup
\alias StaffGroup
systemStartDelimiter = #'SystemStartBrace
\override SystemStartBrace.extra-offset = #'(12 . 0)
}
\context {
\StaffGroup
\name WindGroup
\alias StaffGroup
systemStartDelimiter = #'SystemStartBracket
\override SystemStartBracket.collapse-height = #1
\override SystemStartBracket.extra-offset = #'(15.5 . 0)
}
\context {
\StaffGroup
\name StringGroup
\alias StaffGroup
\accepts ViolinGroup
systemStartDelimiter = #'SystemStartBracket
\override SystemStartBracket.extra-offset = #'(15.5 . 0)
}
\context {
\StaffGroup
\name OrchestraGroup
\accepts WindGroup
\accepts StringGroup
systemStartDelimiter = #'SystemStartBrace
\override SystemStartBrace #'X-offset = #-13
instrumentName = \markup \rotate #90 { "Orchestra I" }
\override InstrumentName.extra-offset = #'(13 . 0)
}
\context {
\GrandStaff
\remove "System_start_delimiter_engraver"
\accepts OrchestraGroup
\accepts StaffGroup
}
}
\score {
\new GrandStaff <<
\new OrchestraGroup <<
\new WindGroup <<
\new Staff \with { instrumentName = "Oboe" } \someMusic
>>
\new StringGroup <<
\new ViolinGroup <<
\new Staff \with { instrumentName = "Violino I" } \someMusic
\new Staff \with { instrumentName = "Violino II" } \someMusic
>>
\new Staff \with { instrumentName = "Viola" } \someMusic
>>
>>
\new StaffGroup <<
\new Staff \with { instrumentName = "Soprano" \override InstrumentName.padding = #-23.5 } \someMusic
\new Staff \someMusic