lilypond-user
[Top][All Lists]
Advanced

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

Re: Barline through all staves


From: William Rehwinkel
Subject: Re: Barline through all staves
Date: Tue, 3 Dec 2024 09:04:57 -0500
User-agent: Mozilla Thunderbird

Dear Thomas,

Let me know if the attached file achieves what you were hoping for.

Thanks,
-William

% --------
\version "2.25.21"

scoreAViolinIPart = {c'4 c' c' c' c' c' c' c' c' c' c' c' c'1 }

scoreAViolinIIPart = {
% for every staff which is the BOTTOM of a group (example: piano left hand)
  % OR where you don't want a connecting line below,
  % include this override
  \override Staff.BarLine.allow-span-bar = ##f c'4 c' c'  c' |
  % before the FIRST NOTE of the NEXT measure
  \once \override Staff.BarLine.allow-span-bar = ##t
c' c' c' c' | c' c' c' c' | c'1 \override Staff.BarLine.allow-span-bar = ##t \bar "|."
}

scoreASopranoVoicePart = { \override Staff.BarLine.allow-span-bar = ##f c'4 c' c' c' |
\once \override Staff.BarLine.allow-span-bar = ##t
c' c' c' c' | c' c' c' c' | c'1 \override Staff.BarLine.allow-span-bar = ##t
}
scoreAAltoVoicePart = { \override Staff.BarLine.allow-span-bar = ##f c'4 c' c' c' |
\once \override Staff.BarLine.allow-span-bar = ##t
c' c' c' c' | c' c' c' c' | c'1 \override Staff.BarLine.allow-span-bar = ##t
}
scoreATenorVoicePart = { \override Staff.BarLine.allow-span-bar = ##f c'4 c' c' c' |
\once \override Staff.BarLine.allow-span-bar = ##t
c' c' c' c' | c' c' c' c' | c'1 \override Staff.BarLine.allow-span-bar = ##t
}
scoreABassVoicePart = { \override Staff.BarLine.allow-span-bar = ##f c'4 c' c' c' |
\once \override Staff.BarLine.allow-span-bar = ##t
c' c' c' c' | c' c' c' c' | c'1 \override Staff.BarLine.allow-span-bar = ##t
}

scoreABassoContinuoPart = {c'4 c' c' c' | c' c' c' c' | c' c' c' c' | c'1 }

\score {
  <<
    \new StaffGroup
    <<
      \new Staff \scoreAViolinIPart
      \new Staff \scoreAViolinIIPart
    >>
    \new ChoirStaff
    <<
      \new Staff \scoreASopranoVoicePart
      \new Staff \scoreAAltoVoicePart
      \new Staff \scoreATenorVoicePart
      \new Staff \scoreABassVoicePart
    >>
    \new Staff \scoreABassoContinuoPart
  >>
  \layout {
    \context {
      \Score
      \consists Span_bar_engraver
    }
  }
}
% --------

On 12/3/24 08:22, Thomas Scharkowski wrote:
Hi,

I have this Score:

   <<
     \new StaffGroup
     <<
       \scoreAViolinIPart
       \scoreAViolinIIPart
     >>
     \new ChoirStaff
     <<
       \scoreASopranoVoicePart
       \scoreAAltoVoicePart
       \scoreATenorVoicePart
       \scoreABassVoicePart
     >>
     \scoreABassoContinuoPart
   >>
I would like barlines through all staves at some places, but cannot find a 
solution by myself.
Help appreciated!

Thanks,
Thomas

--
William Rehwinkel (any pronouns)
Juilliard School '26 - Oberlin Conservatory '24
william@williamrehwinkel.net - https://williamrehwinkel.net
PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt

Attachment: barlines.ly
Description: Text document

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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