2010/6/2 Arno Waschk <[email protected]>:
> dear list,
>
> i am searching for a possibility to define different types of bar
> lines in different staves simultaneously, in particular for defining
> independent repeats for two instruments:
>
> /
> |:m | m:|:m | m | m:|
> |:m | m | m:|:m | m:|
> \
>
> m being some random music. i would not mind this being ignored by or
> confusing for MIDI output.
>
> Any help suggested? I was not able to find something in LSR or the
> manual.
Hi Arno!
The following code seems to do what you want quite well.
(I will submit it to the LSR)
\version "2.13.22"
\score {
<<
\new Staff {
\relative c' {
\repeat volta 2 {
c1 | c
}
\repeat volta 2 {
c1 | c | c
}
}
}
\new Staff {
\relative c' {
\repeat volta 2 {
c1 | c | c
}
\repeat volta 2 {
c1 | c
}
}
}
>>
\layout {
\context {
\Staff
\consists "Timing_translator"
\consists "Default_bar_line_engraver"
\consists "Repeat_acknowledge_engraver"
\consists "Volta_engraver"
}
\context {
\Score
\remove "Timing_translator"
\remove "Default_bar_line_engraver"
\remove "Repeat_acknowledge_engraver"
\remove "Volta_engraver"
}
}
}
Cheers,
Xavier
--
Xavier Scheuer <[email protected]>
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user