lilypond-user
[Top][All Lists]
Advanced

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

How about a StaffGroup containing a single Staff?


From: Menu Jacques
Subject: How about a StaffGroup containing a single Staff?
Date: Wed, 15 Nov 2017 21:20:49 +0100

Hello folks,

In the code below, the structure of the two StaffGroup's is similar, with the second one having but one Staff in it.
Yet the latter doesn’t get a brace as the first one does.

Commenting the second \new StaffGroup out altogether, thus bringing the Pauke \new Staff at the same level as the first \new StaffGroup, produces the same score.

Are there situations when a brace should be produced for such a single staff staff group, and if so, how can that be obtained?

Thanks for your help!


\version "2.19.58"
% automatically converted by musicxml2ly from 1.xml_inter.xml


\header {
  encodingsoftware =  "Cubase, Version 7.5.40, Build 315"
  encodingdate =  "2017-11-14"
}

\paper {

  paper-width = 20.95\cm
  paper-height = 29.7\cm
  top-margin = 1.52\cm
  bottom-margin = 1.55\cm
  left-margin = 1.52\cm
  right-margin = 1.55\cm
  indent = 1.61153846154\cm
  short-indent = 0.604326923077\cm
}

\layout {
  \context {
    \Score
    skipBars = ##t
    autoBeaming = ##f
  }
}


PartPFiveVoiceOne =  \relative c' {
  \clef "treble" \key c \major \numericTimeSignature\time 4/4 | % 1
  R1*2 | % 3
  r2 \stemUp c2 _\mp | % 4
  \bar "|."
}

PartPSixVoiceOne =  \relative c {
  \clef "bass" \key c \major \numericTimeSignature\time 4/4 | % 1
  \stemUp c1 _\mp | % 2
  \stemUp a2. \stemUp b8 [ \stemUp a8 ] | % 3
  \stemUp g1 | % 4
  \bar "|."
}

PartPSevenVoiceOne =  \relative c {
  \transposition c \clef "bass" \key c \major
  \numericTimeSignature\time 4/4 | % 1
  \stemUp c4 _\f r4 r2 | % 2
  R1*2 | % 4
  \bar "|."
}


% The score definition
\score {
  <<

    \new StaffGroup
    <<
      \new Staff
      <<
        \set Staff.instrumentName = "Horn 1"
        \set Staff.shortInstrumentName = "Hrn. 1"

        \context Staff <<
          \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
          \context Voice = "PartPFiveVoiceOne" {  \PartPFiveVoiceOne }
        >>
      >>
      \new Staff
      <<
        \set Staff.instrumentName = "Horn 2"
        \set Staff.shortInstrumentName = "Hrn. 2"

        \context Staff <<
          \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
          \context Voice = "PartPSixVoiceOne" {  \PartPSixVoiceOne }
        >>
      >>
    >>

    \new StaffGroup
    <<
      \new Staff
      <<
        \set Staff.instrumentName = "Pauke"
        \set Staff.shortInstrumentName = "Pk."

        \context Staff <<
          \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
          \context Voice = "PartPSevenVoiceOne" {  \PartPSevenVoiceOne }
        >>
      >>
    >>

  >>

  \layout {}
  % To create MIDI output, uncomment the following line:
  %  \midi {\tempo 4 = 100 }
}




reply via email to

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