Dear Valentine and Jean, Many thanks for the help and documentation. I think once upon a time Aaron or someone else gave me the link. Good to have it again.
mattfong On Fri, Mar 18, 2022 at 3:08 PM Valentin Petzel <valen...@petzel.at> wrote: > Hello Matthew, > > and or can be done by (or ...), like (or somthing1 somthing2) (though you > can > have any amount of arguments). > > But at some points you might want to do something like this: > > \version "2.22.2" > > #(define spanbars > '("||" "|." ":|." ".|:" ":|.|:")) > > \layout { > \context { > \ChoirStaff > \consists Span_bar_engraver > \override BarLine.allow-span-bar = > #(lambda (grob) > (member (ly:grob-property grob 'glyph) > spanbars)) > } > } > > \new ChoirStaff << > \new Staff { 1 1 \bar "||" 1 \bar ":|." 1 \bar ".|:" 1 \bar ":|.|:" 1 > \bar > "|." } > \new Staff { \repeat unfold 6 c'1 } > >> > > or if you want to span anything BUT a normal barline you might want to use > > (not (equal? (ly:grob-property grob 'glyph) "|")) > > instead. > > Cheers, > Valentin > > Am Freitag, 18. März 2022, 22:57:33 CET schrieb Matthew Fong: > > Hello Valentin, > > > > Awesome. I've been wanting to learn more Scheme! I just need to figure > out > > OR statements to get a final bar! > > > > > > Many thanks, > > mattfong > > > > On Thu, Mar 17, 2022 at 7:11 PM Valentin Petzel <valen...@petzel.at> > wrote: > > > Hello Matthew, > > > > > > if you want you can even automatise this: > > > > > > \version "2.22.2" > > > > > > \layout { > > > > > > \context { > > > > > > \ChoirStaff > > > \consists Span_bar_engraver > > > \override BarLine.allow-span-bar = > > > #(lambda (grob) > > > > > > (equal? (ly:grob-property grob 'glyph) > > > > > > "||")) > > > > > > } > > > > > > } > > > > > > > > > \new ChoirStaff << > > > > > > \new Staff { 1 1 \bar "||" 1 } > > > \new Staff { 1 1 1 } > > > > > > Cheers, > > > Valentin > > > > > > Am Freitag, 18. März 2022, 00:44:46 CET schrieb Matthew Fong: > > > > Dear Jean, > > > > > > > > Grazie mille! This is exactly what I was looking for: > > > > [image: Screen Shot 2022-03-17 at 16.43.13.png] > > > > > > > > Many thanks, > > > > mattfong > > > > > > > > On Thu, Mar 17, 2022 at 3:55 PM Jean Abou Samra <j...@abou-samra.fr> > > > > > > wrote: > > > > > Le 17/03/2022 à 23:22, Matthew Fong a écrit : > > > > > > Hello Jean, > > > > > > > > > > > > I only want the bar lines interstaff at the double bar, and not > at > > > > > > every measure. The purpose is this helps better visually mark the > > > > > > end > > > > > > of a phrase. > > > > > > > > > > > > I'm also trying to avoid Mensurstriche layout, since the choir > > > > > > doesn't > > > > > > > > > seem to like it very much. > > > > > > > > > > > > > > > > > > Many thanks, > > > > > > mattfong > > > > > > > > > > Ah, sorry, I misread completely. You could do > > > > > > > > > > \version "2.22.2" > > > > > > > > > > \layout { > > > > > > > > > > \context { > > > > > > > > > > \ChoirStaff > > > > > \consists Span_bar_engraver > > > > > \override BarLine.allow-span-bar = ##f > > > > > > > > > > } > > > > > > > > > > } > > > > > > > > > > spanBarHere = \once \override ChoirStaff.BarLine.allow-span-bar = > ##t > > > > > > > > > > > > > > > \new ChoirStaff << > > > > > > > > > > \new Staff { 1 1 \spanBarHere \bar "||" 1 } > > > > > \new Staff { 1 1 1 } > >