lilypond-user
[Top][All Lists]
Advanced

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

Changing the SpanBar for a single staff


From: Kevin Barry
Subject: Changing the SpanBar for a single staff
Date: Wed, 20 Feb 2013 10:53:21 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

Dear LilyPond users,

I am trying to add an analysis staff above a PianoStaff group to which its bar lines are connected with a dotted SpanBar. Since the SpanBar appears to only live in a context for staffgroups (PianoStaff, ChoirStaff etc) there appears to be no way to add one to a lone staff. My best attempt is to include the PianoStaff inside a StaffGroup and set different SpanBars for each one, but the result is that the PianoStaff prints both SpanBars on top of eachother (the code for this is at the bottom of the email). My various attempts to alter the SpanBar for a single staff have no effect. I would appreciate any help!

\version "2.16.1"

\score {
  \new StaffGroup \with {
    \remove "System_start_delimiter_engraver"
    \override SpanBar #'glyph-name = #":"
  }
  <<
    \new Staff { c'1 }
    \new PianoStaff \with {
      \override SpanBar #'glyph-name = #"|" }
    <<
      \new Staff { c' }
      \new Staff { c' }
    >>
  >>
}

Regards,
Kevin Barry



reply via email to

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