Steven,
> From: Steven Weber <pant...@hotmail.com> > Subject: Special handling for .|:-|| barline type? > > I've run across a > problem with repeats at breaks (double bar on the previous line, start > repeat sign on the start of the next line). Whenever I attempt to override > the stencil in any way, I lose the || bar at the end of the line (it gets > replaced with another .|: bar). > > Minimal example attached - any suggestions on what I need to do to maintain > the .|:--|| behavior? Is this a case where I'd have to use > before/after-line-breaking? > > Thanks! > > --Steven > The trick is to define a missing barline definition. What is not obvious is that each barline definition has a few cases. These correspond to how it is treated before a line break, in the middle of a line, and after a line break. http://www.lilypond.org/doc/v2.19/Documentation/notation/bars So, you'll want to define a repeat barline that prints as a double bar line at the end of the preceding line. Then you need to use that barline explicitly for your volta. Here is the one I use, which does the same thing except it also uses the bigger flags "[|:". You can probably fiddle with that part of it to get what you want, if you want no flags on the repeat. Sorry, I didn't look at your example. I'm not too fond of attachments, and I don't think it really matters in this case. You aren't doing anything wrong, you just need to fill out this missing piece of 'pond. \version "2.18.0" % The missing definition. \defineBarLine "||.[|:" #'("||" "[|:" "") \new PianoStaff << \new Staff { \clef treble \key c\major \time 4/4 % No need to add tweak barline at the end here, since it is being covered by the new repeat. <g c' e'> <a c' f'> <g c' e'> <a c' f'> | \break % Use the barline here \bar "||.[|:" \repeat volta 2 { <g c' e'> <a c' f'> <g c' e'> <a c' f'> | } % If you like the big flags, use the corresponding end repeat here. \bar ":|]" } \new Staff { \clef bass \key c\major \time 4/4 <c, c>4 <d, d> <c, c>4 <d, d> | <c, c>4 <d, d> <c, c>4 <d, d> | } >> HTH, David Elaine Alt 415 . 341 .4954 "*Confusion is highly underrated*" ela...@flaminghakama.com self-immolation.info skype: flaming_hakama Producer ~ Composer ~ Instrumentalist -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user