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: Matthew Fong
Subject: Re: Inter-staff bar line for ChoirStaff?
Date: Fri, 18 Mar 2022 14:57:33 -0700

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 <valentin@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 <jean@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 }


reply via email to

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