I'd like to differentiate between two repeat voltas in a
score by using
2 different start and end bar types.
The following bar types are already defined in LilyPond:
Score.startRepeatBarType = #"[|:"
Score.endRepeatBarType = #":|]"
I'd like to define a second bar type with double opening and
closing
parentheses, e.g.:
Score.startRepeatBarType = #"[[|:"
Score.endRepeatBarType = #":|]]"
How would that be acheived?
Maybe something like this:
\version "2.25.9"
\language "english"
\new Staff {
\defineBarLine "[[|:" #'( #t #t #t )
\defineBarLine ":|]]" #'( #t #t #t )
\new Voice {
\relative c' {
\set Score.startRepeatBarType = #"[|:"
\set Score.endRepeatBarType = #":|]"
c' d e f
\repeat volta 2 {
c d e f
}
c d e f
\set Score.startRepeatBarType = #"[[|:"
\set Score.endRepeatBarType = #":|]]"
\repeat volta 2 {
c d e f
}
}
}
}
which produces:
But basically the two \defineBarLine lines are what
actually define the bars lines to use, then later on you use
them as desired. The three bool values after define the
behavior a beginning of line, mid line, end end of line.
Those will need adjusted to your needs.