lilypond-user
[Top][All Lists]
Advanced

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

Re: Inter-staff bar line for ChoirStaff?


From: Jean Abou Samra
Subject: Re: Inter-staff bar line for ChoirStaff?
Date: Fri, 18 Mar 2022 22:59:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0



Le 18/03/2022 à 22:57, Matthew Fong a écrit :
Hello Valentin,

Awesome. I've been wanting to learn more Scheme! I just need to figure out OR statements to get a final bar!




\version "2.22.2"

\layout {
   \context {
     \ChoirStaff
     \consists Span_bar_engraver
     \override BarLine.allow-span-bar =
     #(lambda (grob)
        (let ((glyph (ly:grob-property grob 'glyph)))
          (or (equal? glyph "||")
              (equal? glyph "|."))))
   }
}


\new ChoirStaff <<
   \new Staff { 1 1 \bar "||" 1 \bar "|." }
   \new Staff { 1 1 1 }
 >>


Have a look at

https://scheme-book.ursliska.de/scheme/conditionals/logical.html

Jean




reply via email to

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