Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Alexis Maleval
Thank you Simon.

Thomas,
your solution works very well too and it’s seems easier to use.
Thank you very much for your help.

Best regards,
Alexis.

> Le 22 mars 2016 à 23:10, Simon Albrecht  a écrit :
> 
> On 22.03.2016 23:01, Alexis Maleval wrote:
>> Hi Thomas,
>> thanks for your support, unfortunately I wasn’t able to open the two files, 
>> are they encrypted?
> 
> No, they aren’t. I can open them just fine.
> See  
> in case they didn’t arrive properly with you.
> 
> Best, Simon


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Simon Albrecht

On 22.03.2016 23:01, Alexis Maleval wrote:

Hi Thomas,
thanks for your support, unfortunately I wasn’t able to open the two files, are 
they encrypted?


No, they aren’t. I can open them just fine.
See 
 
in case they didn’t arrive properly with you.


Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Alexis Maleval
Hi Thomas,
thanks for your support, unfortunately I wasn’t able to open the two files, are 
they encrypted?

Regards,
Alexis.


> Le 22 mars 2016 à 22:19, Thomas Morley  a écrit :
> 
> Type: TEXT/PLAIN;
>   charset=UTF-8
> 
> 2016-03-22 15:57 GMT+01:00 Thomas Morley :
> 
>> Lemme think a bit more about the problem. In the past I tried
>> different methods to solve it, none of it convincing.
>> But maybe I'll get a better or at least new idea soon ...
> 
> 
> 
> Attached best I can do for today.
> Too tired to do more explanation/documentation, some 
> "comme


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Alexis Maleval
Hi Klaus,
thank you so much, it works fine without any heigh adjustment.
Many thanks to Schneidy.
it's really nice to have effective support.

Best regards,
Alexis.


> Le 22 mars 2016 à 21:57, Klaus Blum  a écrit :
> 
> Hi Alexis, 
> 
> Schneidy has created a snippet for that issue:
> http://lsr.di.unimi.it/LSR/Item?id=991
> 
> There's a little drawback: You have to (manually) adjust the bracket height
> to match the staff group height. 
> I've tried a little modification to avoid this: You can add the wings to the
> topmost and lowermost staff in the group: 
> 
> %
> ---
> 
> \version "2.18.2"
> 
> #(define-markup-command (staff-group-bracket-upper layout props
> bracket-height)(number?)
>   "Draw upper wing for StaffGroup bracket."
>   (interpret-markup layout props
> (markup
>  (#:with-dimensions (cons -0.001 0) (cons 0.001 0)
>(#:override (cons (quote filled) #t)
>  (#:path 0.01 `(
>  (moveto  0.00  ,(+ bracket-height 0.35))
>  (curveto  0.00  ,(+ bracket-height 0.43)  0.07 ,(+
> bracket-height 0.42)  0.10 ,(+ bracket-height 0.42))
>  (curveto  0.70  ,(+ bracket-height 0.42)  1.10 ,(+
> bracket-height 0.60)  1.76 ,(+ bracket-height 1.50))
>  (curveto  1.82  ,(+ bracket-height 1.58)  1.89 ,(+
> bracket-height 1.50)  1.85 ,(+ bracket-height 1.45))
>  (curveto  1.14  ,(+ bracket-height 0.40)  0.93 ,(+
> bracket-height 0.18)  0.45 ,bracket-height)
>  (lineto   0.00  ,bracket-height)
>  (closepath)
>  )))
> 
> #(define-markup-command (staff-group-bracket-lower layout props
> bracket-height)(number?)
>   "Draw lower wing for StaffGroup bracket."
>   (interpret-markup layout props
> (markup
>  (#:with-dimensions (cons -0.001 0) (cons 0.001 0)
>(#:override (cons (quote filled) #t)
>  (#:path 0.01 `(
>  (moveto   0.00  ,(* bracket-height -1))
>  (curveto  0.00  ,(+ (* bracket-height -1) -0.43) 
> 0.07 ,(+ (* bracket-height -1) -0.42)  0.10 ,(+ (* bracket-height -1)
> -0.42))
>  (curveto  0.70  ,(+ (* bracket-height -1) -0.42) 
> 1.10 ,(+ (* bracket-height -1) -0.60)  1.76 ,(+ (* bracket-height -1)
> -1.50))
>  (curveto  1.82  ,(+ (* bracket-height -1) -1.58) 
> 1.89 ,(+ (* bracket-height -1) -1.50)  1.85 ,(+ (* bracket-height -1)
> -1.45))
>  (curveto  1.14  ,(+ (* bracket-height -1) -0.40) 
> 0.93 ,(+ (* bracket-height -1) -0.18)  0.45 ,(* bracket-height -1))
>  (closepath
> 
> addUpperWing =
> #(define-music-function
>  (parser location repeat-bar-type)
>  (string?)
>  (cond
>   ((string=? repeat-bar-type "[")
>#{
>  \once \override Staff.BarLine.stencil =
>  #(lambda (grob)
> (ly:stencil-combine-at-edge
>  (ly:bar-line::print grob)
>  X LEFT
>  (grob-interpret-markup grob
>#{
>  \markup
>  % \translate #(cons 0 repeat-bar-translate)
>  \staff-group-bracket-upper #1.8
>#})))
>#})
>   ((string=? repeat-bar-type "]")
>#{
> 
>  \once \override Staff.BarLine.stencil =
>  #(lambda (grob)
> (ly:stencil-combine-at-edge
>  (ly:bar-line::print grob)
>  X RIGHT
>  (grob-interpret-markup grob
>#{
>  \markup
>  \rotate #180
>  % \translate #(cons 0 repeat-bar-translate)
>  \staff-group-bracket-lower #1.8
>#})))
>#})
>   (else
>#{
>  \once \override Staff.BarLine.stencil = #ly:bar-line::print
>#})))
> 
> addLowerWing =
> #(define-music-function
>  (parser location repeat-bar-type)
>  (string?)
>  (cond
>   ((string=? repeat-bar-type "[")
>#{
>  \once \override Staff.BarLine.stencil =
>  #(lambda (grob)
> (ly:stencil-combine-at-edge
>  (ly:bar-line::print grob)
>  X LEFT
>  (grob-interpret-markup grob
>#{
>  \markup
>  \staff-group-bracket-lower #1.8
>#})))
>#})
>   ((string=? repeat-bar-type "]")
>#{
> 
>  \once \override Staff.BarLine.stencil =
>  #(lambda (grob)
> (ly:stencil-combine-at-edge
>  (ly:bar-line::print grob)
>  X RIGHT
>  (grob-interpret-markup grob
>#{
>  \markup
>  \rotate #180
>  \staff-group-bracket-upper #1.8
>#})))
>#})
>   (else
>#{
>  \once \override Staff.BarLine.stencil = #ly:bar-line::print
>#})))
> 
> %%% Test:
> \new StaffGroup <<
>  \new Staff \relative c' {
>c4 d e f
>\repeat volta 2 {
>  \addUpperWing #"["
>  g a b c
>  d e f g
>  \addUpperWing #"]"
>   

Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Thomas Morley
2016-03-22 15:57 GMT+01:00 Thomas Morley :

> Lemme think a bit more about the problem. In the past I tried
> different methods to solve it, none of it convincing.
> But maybe I'll get a better or at least new idea soon ...



Attached best I can do for today.
Too tired to do more explanation/documentation, some "comments" in file, though.

HTH,
 Harm


tip-bar-line-01.pdf
Description: Adobe PDF document
\version "2.19.38"

\pointAndClickOff

#(define (define-grob-property symbol type? description)
  (if (not (equal? (object-property symbol 'backend-doc) #f))
  (ly:error (_ "symbol ~S redefined") symbol))

  (set-object-property! symbol 'backend-type? type?)
  (set-object-property! symbol 'backend-doc description)
  symbol)

#(for-each
  (lambda (x)
(apply define-grob-property x))
`((tip 
  ,symbol? 
  "Which bracket tip should be printed for certain BarLines. 
Possible settings are @code{'up}, @code{'down} or @code{#f}
If set @code{#f} an automatic procedure takes over choosing the correct BarLine,
Which is not very safe.")))

CertainBracketTipsBarLines =
\override Score.BreakAlignGroup.after-line-breaking =
  #(lambda (grob)
(let* ((elts (ly:grob-object grob 'elements))
   (bar-lines
 (if (null? elts)
 '()
 (filter 
   (lambda (g) (grob::has-interface g 'bar-line-interface)) 
   (ly:grob-array->list elts
   (possible-relevant-bar-lines
 (filter 
   (lambda (b) (not (null? (ly:grob-property b 'tip
   bar-lines)))
  (if (and (>= (length bar-lines) 2)
   (not (null? possible-relevant-bar-lines))
   (member 
 (ly:grob-property (car bar-lines) 'glyph-name)
 '(":..:" ":|." ".|:")))
  (let* ((possible-top-bar-lines 
   (filter 
 (lambda (b) (eq? (ly:grob-property b 'tip) 'up))
 bar-lines))
 (top-bar-lines
   (if (null? possible-top-bar-lines)
   (list (car bar-lines))
   possible-top-bar-lines))
 (bar-lines-list-length (length top-bar-lines))
 (possible-bottom-bar-lines 
   (filter 
 (lambda (b) (eq? (ly:grob-property b 'tip) 'down))
 bar-lines))
 (bottom-bar-lines
   (if (null? possible-bottom-bar-lines)
   (list (last bar-lines))
   possible-bottom-bar-lines))
 (top-stil 
   (ly:grob-property (car top-bar-lines) 'stencil))
 (bottom-stil 
   (ly:grob-property (car bottom-bar-lines) 'stencil))
 (layout (ly:grob-layout grob))
 (props 
   (ly:grob-alist-chain 
 grob 
 (ly:output-def-lookup layout 'text-font-defaults)))
 (font 
   (ly:paper-get-font 
 layout
 (cons '((font-encoding . feta)) props)))
 (tip (ly:font-get-glyph font "brackettips.up"))
 (top-glyph-name 
   (ly:grob-property (car top-bar-lines) 'glyph-name))
 (repeat-type 
   (cond ((string=? top-glyph-name  ":..:")
  'double-repeat)
 ((string=? top-glyph-name ":|.")
  'close-repeat)
 ((string=? top-glyph-name ".|:")
  'open-repeat)
 (else #f)))
  (up-tip
(cond ((eq? repeat-type 'close-repeat)
(ly:stencil-translate-axis
  (ly:stencil-scale tip -1 1)
  (cdr (ly:stencil-extent top-stil X))
  X))
  ((eq? repeat-type 'double-repeat)
(let ((kern 
 (/ (ly:grob-property (car top-bar-lines) 
  'kern) 
10))
  (top-stil-ext (ly:stencil-extent top-stil X)))
  (ly:stencil-translate-axis
(ly:stencil-combine-at-edge
  (ly:stencil-scale tip -1 1)
  X RIGHT
  tip
  kern)
(- (interval-center top-stil-ext) (/ kern 2))
X)))
  (else tip)))
  (down-tip (ly:stencil-scale up-tip 1 -1)))
(for-each
  (lambda (grobb bar-stil dir tip-style)
  (ly:g

Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Klaus Blum
Hi Alexis, 

Schneidy has created a snippet for that issue:
http://lsr.di.unimi.it/LSR/Item?id=991

There's a little drawback: You have to (manually) adjust the bracket height
to match the staff group height. 
I've tried a little modification to avoid this: You can add the wings to the
topmost and lowermost staff in the group: 

%
---

\version "2.18.2"

#(define-markup-command (staff-group-bracket-upper layout props
bracket-height)(number?)
   "Draw upper wing for StaffGroup bracket."
   (interpret-markup layout props
 (markup
  (#:with-dimensions (cons -0.001 0) (cons 0.001 0)
(#:override (cons (quote filled) #t)
  (#:path 0.01 `(
  (moveto  0.00  ,(+ bracket-height 0.35))
  (curveto  0.00  ,(+ bracket-height 0.43)  0.07 ,(+
bracket-height 0.42)  0.10 ,(+ bracket-height 0.42))
  (curveto  0.70  ,(+ bracket-height 0.42)  1.10 ,(+
bracket-height 0.60)  1.76 ,(+ bracket-height 1.50))
  (curveto  1.82  ,(+ bracket-height 1.58)  1.89 ,(+
bracket-height 1.50)  1.85 ,(+ bracket-height 1.45))
  (curveto  1.14  ,(+ bracket-height 0.40)  0.93 ,(+
bracket-height 0.18)  0.45 ,bracket-height)
  (lineto   0.00  ,bracket-height)
  (closepath)
  )))

#(define-markup-command (staff-group-bracket-lower layout props
bracket-height)(number?)
   "Draw lower wing for StaffGroup bracket."
   (interpret-markup layout props
 (markup
  (#:with-dimensions (cons -0.001 0) (cons 0.001 0)
(#:override (cons (quote filled) #t)
  (#:path 0.01 `(
  (moveto   0.00  ,(* bracket-height -1))
  (curveto  0.00  ,(+ (* bracket-height -1) -0.43) 
0.07 ,(+ (* bracket-height -1) -0.42)  0.10 ,(+ (* bracket-height -1)
-0.42))
  (curveto  0.70  ,(+ (* bracket-height -1) -0.42) 
1.10 ,(+ (* bracket-height -1) -0.60)  1.76 ,(+ (* bracket-height -1)
-1.50))
  (curveto  1.82  ,(+ (* bracket-height -1) -1.58) 
1.89 ,(+ (* bracket-height -1) -1.50)  1.85 ,(+ (* bracket-height -1)
-1.45))
  (curveto  1.14  ,(+ (* bracket-height -1) -0.40) 
0.93 ,(+ (* bracket-height -1) -0.18)  0.45 ,(* bracket-height -1))
  (closepath

addUpperWing =
#(define-music-function
  (parser location repeat-bar-type)
  (string?)
  (cond
   ((string=? repeat-bar-type "[")
#{
  \once \override Staff.BarLine.stencil =
  #(lambda (grob)
 (ly:stencil-combine-at-edge
  (ly:bar-line::print grob)
  X LEFT
  (grob-interpret-markup grob
#{
  \markup
  % \translate #(cons 0 repeat-bar-translate)
  \staff-group-bracket-upper #1.8
#})))
#})
   ((string=? repeat-bar-type "]")
#{

  \once \override Staff.BarLine.stencil =
  #(lambda (grob)
 (ly:stencil-combine-at-edge
  (ly:bar-line::print grob)
  X RIGHT
  (grob-interpret-markup grob
#{
  \markup
  \rotate #180
  % \translate #(cons 0 repeat-bar-translate)
  \staff-group-bracket-lower #1.8
#})))
#})
   (else
#{
  \once \override Staff.BarLine.stencil = #ly:bar-line::print
#})))

addLowerWing =
#(define-music-function
  (parser location repeat-bar-type)
  (string?)
  (cond
   ((string=? repeat-bar-type "[")
#{
  \once \override Staff.BarLine.stencil =
  #(lambda (grob)
 (ly:stencil-combine-at-edge
  (ly:bar-line::print grob)
  X LEFT
  (grob-interpret-markup grob
#{
  \markup
  \staff-group-bracket-lower #1.8
#})))
#})
   ((string=? repeat-bar-type "]")
#{

  \once \override Staff.BarLine.stencil =
  #(lambda (grob)
 (ly:stencil-combine-at-edge
  (ly:bar-line::print grob)
  X RIGHT
  (grob-interpret-markup grob
#{
  \markup
  \rotate #180
  \staff-group-bracket-upper #1.8
#})))
#})
   (else
#{
  \once \override Staff.BarLine.stencil = #ly:bar-line::print
#})))

%%% Test:
\new StaffGroup <<
  \new Staff \relative c' {
c4 d e f
\repeat volta 2 {
  \addUpperWing #"["
  g a b c
  d e f g
  \addUpperWing #"]"
}
s8
  }
  \new Staff \relative c {
\clef F
c4 d e f
\repeat volta 2 {
  g a b c
  d e f g
}
s8
  }
  \new Staff \relative c, {
\clef F
c4 d e f
\repeat volta 2 {
  \addLowerWing #"["
  g a b c
  d e f g
  \addLowerWing #"]"
}
s8
  }
>>

%
---

Cheers, 
Klau

Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Marc Hohl

Am 22.03.2016 um 14:20 schrieb Malte Meyn:



Am 22.03.2016 um 14:03 schrieb Alexis Maleval:

Hi,
I would like to know how to prevent a winged repeat bar line to be
split when it
has to cover 2 staves.


Probably this isn’t possible yet;


Yep. I rewrote the bar line stuff some years ago and stumbled across the 
fact that winged span bars are not possible.


I did not find an easy way to implement them, so I gave up :(

To be honest, the whole span bar creation routine is not really open for 
enhancements IIRC.


Marc



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread David Kastrup
Thomas Morley  writes:

> 2016-03-22 15:46 GMT+01:00 David Kastrup :
>
>> And once you cater for that, the output is, uh, creative?
>
>
> lol
>
> http://lilypond.1069038.n5.nabble.com/attachment/58326/1/barlineOmegaBild.png
> shows how it was meant to be

Oh.  But that's all single-staff.  And single-staff _does_ work in a
straightforward manner already like Alexis showed.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Thomas Morley
2016-03-22 15:46 GMT+01:00 David Kastrup :

> And once you cater for that, the output is, uh, creative?


lol

http://lilypond.1069038.n5.nabble.com/attachment/58326/1/barlineOmegaBild.png
shows how it was meant to be

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Thomas Morley
2016-03-22 15:25 GMT+01:00 Alexis Maleval :
> Thank you guys your quick answers and explanation.
> Here is attached an actual compilable example.
>
>
>
> By the way I’ve found this
> ttp://lilypond.1069038.n5.nabble.com/repeat-barlines-with-wings-td58324.html
> Unfortunately the suggested solution uses 2.12.3 and throws compilation
> error in 2.18.2. I don’t know if it could solve my problem.



Meanwhile the bar-line-interface was heavily changed.
Making this old code compile with recent lily-version would mean to
entirely rewrite it.

Lemme think a bit more about the problem. In the past I tried
different methods to solve it, none of it convincing.
But maybe I'll get a better or at least new idea soon ...

Btw, please don't use inline images, attach them.  I'm not the only
one always filtering them/reading mails text-only.

Thanks,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread David Kastrup
David Kastrup  writes:

> Alexis Maleval  writes:
>
>> Thank you guys your quick answers and explanation.
>> Here is attached an actual compilable example.
>>
>>
>>
>> By the way I’ve found this
>> ttp://lilypond.1069038.n5.nabble.com/repeat-barlines-with-wings-td58324.html 
>> Unfortunately the suggested solution uses 2.12.3 and throws compilation error
>> in 2.18.2. I don’t know if it could solve my problem.
>
> There is convert-ly but it doesn't cater at all for
>
> commit a657051a1f3be6e6b3bee3647857bdba3c0b943e
> Author: Neil Puttock 
> Date:   Thu Aug 18 00:25:14 2011 +0100
>
> Complete removal of unused optarg in ly:stencil-combine-at-edge.
>
> Sigh.

And once you cater for that, the output is, uh, creative?



barlineOmega.pdf
Description: Adobe PDF document

So there obviously would be work involved to bring this up to scratch.

-- 
David Kastrup
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread David Kastrup
Alexis Maleval  writes:

> Thank you guys your quick answers and explanation.
> Here is attached an actual compilable example.
>
>
>
> By the way I’ve found this
> ttp://lilypond.1069038.n5.nabble.com/repeat-barlines-with-wings-td58324.html 
> Unfortunately the suggested solution uses 2.12.3 and throws compilation error
> in 2.18.2. I don’t know if it could solve my problem.

There is convert-ly but it doesn't cater at all for

commit a657051a1f3be6e6b3bee3647857bdba3c0b943e
Author: Neil Puttock 
Date:   Thu Aug 18 00:25:14 2011 +0100

Complete removal of unused optarg in ly:stencil-combine-at-edge.

Sigh.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Alexis Maleval
Thank you guys your quick answers and explanation.Here is attached an actual compilable example.

winged.ly
Description: Binary data
By the way I’ve found this ttp://lilypond.1069038.n5.nabble.com/repeat-barlines-with-wings-td58324.html Unfortunately the suggested solution uses 2.12.3 and throws compilation error in 2.18.2. I don’t know if it could solve my problem.Regards.Alexis.Le 22 mars 2016 à 14:17, David Kastrup  a écrit :Alexis Maleval  writes:Hi,I would like to know how to prevent a winged repeat bar line to be split when it has to cover 2 staves.Currently I'm using the following code :\layout { \context {   \Score   %% Changing the defaults from engraver-init.ly   startRepeatType = #"[|:"   endRepeatType = #":|]"   doubleRepeatType = #":|][|:" }}It gives :Not really since there is no music.  Please create an actual compilableminimal example so that it's reasonably easy for people to make thenecessary changes.-- David Kastrup___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread David Kastrup
Alexis Maleval  writes:

> Hi,
> I would like to know how to prevent a winged repeat bar line to be split when 
> it has to cover 2 staves.
>
> Currently I'm using the following code :
>
> \layout {
>   \context {
> \Score
> %% Changing the defaults from engraver-init.ly
> startRepeatType = #"[|:"
> endRepeatType = #":|]"
> doubleRepeatType = #":|][|:"
>   }
> }
>
> It gives :

Not really since there is no music.  Please create an actual compilable
minimal example so that it's reasonably easy for people to make the
necessary changes.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Winged repeat bar line unique over multiple staves

2016-03-22 Thread Malte Meyn



Am 22.03.2016 um 14:03 schrieb Alexis Maleval:

Hi,
I would like to know how to prevent a winged repeat bar line to be split when it
has to cover 2 staves.


Probably this isn’t possible yet; a BarLine is put together from the bar 
lines of every single staff plus the SpanBars between the staves. So I 
think one would need the following things:


1. Not only thick bar line with and without wings but also thick bar 
lines with only one wing (top or bottom).

2. A possibility to find out which of these is needed for each staff.
3. Compatibility with \defineBarLine.

Here some code which doesn’t solve your problem but shows 1. the use of 
\defineBarLine and 2. shows the difference between BarLines and SpanBars 
(colors).


%

\version "2.19.38"

\defineBarLine "[|:" #'("|" "[|:" ".|")
\defineBarLine ":|]" #'(":|]" "" " |.")
\defineBarLine ":|][|:" #'(":|]" "[|:" " |..|")

\layout {
  \context {
\Score
startRepeatType = #"[|:"
endRepeatType = #":|]"
doubleRepeatType = #":|][|:"
\override SpanBar.color = #blue
\override BarLine.color = #red
  }
}

\new StaffGroup <<
  \new Staff \relative {
c'1 \repeat volta 2 c \repeat volta 2 c c
  }
  \new Staff \relative {
c'1 \repeat volta 2 c \repeat volta 2 c c
  }
>>

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user