Nick Payne:
Is it possible to get a dashed double barline?

I don't think that there is anything set up for this. One way to do it is to ask for a double portion.
You can test barDoubled.ly for authenticity
by comparing \barDoubled "|" with \bar "||".

Cheers, Robin
\version "2.15.25"

barDoubled = #(define-music-function (parser location glyph) (string?)
  (define (bar-gap-bar grob)
    (let* (
      (layout (ly:grob-layout grob))
      (weight (ly:output-def-lookup layout 'line-thickness 0.1))
      (raw-gap (ly:grob-property grob 'thin-kern))
      (gap (* raw-gap weight))
      )
      (ly:stencil-combine-at-edge (ly:bar-line::print grob)
        X RIGHT (ly:bar-line::print grob) gap)))
  #{
    \bar $glyph 
    \once \override Score.BarLine #'stencil = $bar-gap-bar
  #}
  )

\relative c'' {
  <<
    { <e b g>4 r \barDoubled "dashed" e4. dis8 }
    \\
    { e,,4 r r2 }
  >>
}

<<attachment: barDoubled.png>>

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to