lilypond-user
[Top][All Lists]
Advanced

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

Re: How to make every other barline invisible (or half-sized) ? as it oc


From: Kieren MacMillan
Subject: Re: How to make every other barline invisible (or half-sized) ? as it occurs in barock music
Date: Sat, 27 Mar 2021 19:28:01 -0400

Hi Philippe,

> Many thanks in advance for your suggestions for improvement :-) !

I would separate the barline structure into its own variable, and use \bar "" 
instead of a tweak/override.

%%%%  SNIPPET BEGINS  %%%%
\version "2.22.0"
\language "english"

barlines = {
  \repeat unfold 2 { s2. \bar "" s2. }
  \bar "||"  \mark \markup { \musicglyph "scripts.segno" }
  \repeat unfold 3 { s2. \bar "" s2. }
}

global = {
  \key d \major
  \numericTimeSignature
  \time 3/4
  s2.*10
  \bar "|."
}

scoreATrumpetCI = \relative c''' {
  R2.*2 a2 r4 a2 r4 a,4 d e fs 8. g16 a4 b a2 r4 R2. r2 r4 R2.
}

scoreATrumpetCIPart = \new Staff
  <<
   \global
   \barlines
   \scoreATrumpetCI
   >>

\score {
  <<
    \scoreATrumpetCIPart
  >>
  \layout { }
}

%%%%  SNIPPET ENDS  %%%%

________________________________

Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kieren@kierenmacmillan.info




reply via email to

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