Greetings Marcel,
You wrote:-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
In this piece, I want to add bar lines between staves where bar line
is "||" or "|.", but not when bar lines are "|" or ":".
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

A bit of fiddling and 'lateral thinking' (i.e. guess it and try it), produced the following:-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\layout {
     \context { \Score
     %  \remove "Timing_translator"
      % \remove "Default_bar_line_engraver"
      \consists "Span_bar_engraver"
      \override SpanBar #'stencil =
      #(lambda (grob)
        (if (string=? (ly:grob-property grob 'glyph-name) ":")
            (set! (ly:grob-property grob 'glyph-name) ""))
           (if (string=? (ly:grob-property grob 'glyph-name) "|")
            (set! (ly:grob-property grob 'glyph-name) ""))
        (ly:span-bar::print grob))
     }
     \context { \Staff
      % \consists "Timing_translator"
     %  \consists "Default_bar_line_engraver"
       \override TimeSignature #'style = #'mensural
       \override NoteHead #'style = #'baroque
       \override TupletNumber #'transparent = ##t
       \override TupletBracket #'transparent = ##t
     }
     indent=26\mm
    }
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Does it do what you wanted?
Regards
Bill

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

Reply via email to