gnu-music-discuss
[Top][All Lists]

## repeat problems

 From: David Ondreka Subject: repeat problems Date: Fri, 29 Sep 2000 17:56:54 +0200 (CEST)

1.
If I remember correctly, lily once printed a \bar "||" at the end of a
line if a repeat started at the next line. Currently (lily 1.3.84) I
can't seem to get that behaviour. The following .ly demonstrates it:

Notes = \notes \relative c' {
c4 d e f | g f e d | c d e f | g f e d |
}
\score{
\context Staff {
\Notes
\bar "||";
\break
\repeat volta 2 { \Notes }
\bar "|.";
}
\paper{
\translator{
\ScoreContext
\remove "Bar_number_engraver";
}
}
}

The \bar "||"; doesn't force the double bar line.
Any ideas how I can get it?

2.
Consider the following .ly:

NotesII = \notes \relative c' {
\skip 1*4;
\repeat volta 2 {
c4 d e f | g f e d | c d e f | g f e d |
}
\skip 1;
}
\score{
<
%{\context ChoirStaff = ONE%} \context Staff = one {
\clef "bass";
\notes \relative c {
c4 d e f | g f e d | c d e f | g f e d |
\break
\skip 1*4;
\break
\repeat volta 2 {
c4 d e f | g f e d | c d e f | g f e d |
}
}
\bar "|.";
}
%{\context ChoirStaff = TWO%} \context Staff = two {
\NotesII
}
%{\context ChoirStaff = THREE%} \context Staff = three {
\NotesII
}
>
\paper{
\translator {
\HaraKiriStaffContext
}
\translator{
\ScoreContext
\remove "Bar_number_engraver";
}
}
}

I use something like this (with the ChoirStaffs not commented out and
two staffs per ChoirStaff) in my choir pieces. For easier recognition
of the active staffs I set bass clef in staff "one".
The problem with this is that the repeat bar at line start for the
staffs two and three gets not printed. If on the other hand I comment
out staff three, it will be printed as usual.

Is this a bug?

Thanks for suggestions,

David

-----------------------------------------------------------------------