lilypond-user
[Top][All Lists]
Advanced

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

Re: Orchestral group


From: Kieren MacMillan
Subject: Re: Orchestral group
Date: Wed, 6 Mar 2013 22:22:36 -0500

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


reply via email to

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