lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Winged repeat bar line unique over multiple staves


From: Malte Meyn
Subject: Re: Winged repeat bar line unique over multiple staves
Date: Tue, 22 Mar 2016 14:20:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0



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
  }
>>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]