lilypond-user
[Top][All Lists]
Advanced

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

Re: problem with bartype in staffcontext


From: Thorkil Wolvendans
Subject: Re: problem with bartype in staffcontext
Date: Wed, 05 Jan 2005 16:16:17 +0100

At 13:24 3-1-05, you wrote:
It's much easier to help if you send the .ly file, not only the
resulting output.

but of course.
The piano piece I was typesetting has become a work for two piano's instead of one. The excerpt below essentially has the same problem as I had before but now spread over two piano's. The difference here is that both piano's occasionally have double barlines, but the double barlines of Piano 2 are visible in the Piano1-part, and not in the part of Piano 2, where the barline belongs.

I can't send the complete file due copyright reasons, but I think this excerpt is sufficient.

Kind regards,
Thorkil

%%% START EXCERPT %%%

i = \relative c'{
\time 1/4
\repeat unfold 8 {f16 as d as}\bar"||"
\repeat unfold 6 {f a c d}} %here is no \bar"||" written, yet displayed

ii = \relative c'{
\time 1/4
\repeat unfold 14 {c16 e g e}}

iii = \relative c''{
\time 7/16
\repeat unfold 8 {c,16[ e gis] c,[ e gis] es}\bar"||"} %this doulbe barline is placed in the Piano1-part!

iiii = \relative c''{
\time 7/16
\repeat unfold  8 {g16[ a b] c[ g a] b}
}

pianoi = {
        \context PianoStaff <<
     \set PianoStaff.instrument = "Piano I  "
        \context Staff = "right" <<
     \i
        >>
    \context Staff = "left" <<
     \ii
    >>
  >>
}
pianoii = {
        \context PianoStaff <<
     \set PianoStaff.instrument = "Piano II  "
        \context Staff = "right" <<
     \iii
        >>
    \context Staff = "left" <<
     \iiii
    >>
  >>
}

\score {
  \context StaffGroup = Pianos <<
        \context PianoStaff = "pianoi" <<
        \set PianoStaff.instr = "I "
        \pianoi
        >>
        \context PianoStaff = "pianoii" <<
        \set PianoStaff.instr = "II  "
        \pianoii
        >>
  >>
 \layout{
        \context{
            \Score
            \remove "Timing_engraver"
        }
        \context{
            \PianoStaff
            \consists "Timing_engraver"
        }
  }
}
%%% END EXCERPT %%%





reply via email to

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