On Tue, Nov 11, 2014 at 11:50:40PM +0100, Thomas Morley wrote: > > Lily by default doesn't engrave an open volta at the start of a > > piece, or at a double-barline. I don't know how many others do, > > but I, for one, often override this. > > > > Both of these cases fail: > > > > \version "2.19.3" > > > > \layout { > > \context { > > \Score > > startRepeatType = #"||" > > endRepeatType = #"||" > > %% not needed in the minimal example > > %doubleRepeatType = #"||" > > } > > } > > > > \score { > > \new Staff { > > % c'1 > > \bar "||" > > \repeat volta 2 { c'1 c'1 } > > } > > } > > > > \score { > > \new Staff { > > % c'1 > > \bar ".|:" > > \repeat volta 2 { c'1 c'1 } > > } > > } > > > > > > > > (Sorry for the last empty mail, misclicked.) > > It's because \bar "||" will not print anything at line-begin.
Yes. And perhaps because \bar ".|:" (intentionally?) does not respect \Score.startRepeatType? > Though consider the following: > > \version "2.19.13" > > \new Staff { > \bar ".|:" \repeat volta 2 { c'1 c'1 } > } > > #(define-bar-line "||-r" "||" "||" "||") > > \score { > \new Staff { > \bar "||-r" > \repeat volta 2 { c'1 c'1 } > } > > \layout { > \context { > \Score > startRepeatType = #"||-r" > endRepeatType = #"||-r" > %% not needed in the minimal example > %doubleRepeatType = #"||-r" > } > } > } Thanks, Harm. Hopefully that will solve the OP's needs more reliably than the crude solution I suggested. Cheers, Jim _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user