lilypond-user
[Top][All Lists]
Advanced

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

Re: Make every n'th barline different?


From: Graham King
Subject: Re: Make every n'th barline different?
Date: Thu, 08 May 2014 16:35:40 +0100

On Thu, 2014-05-08 at 07:44 -0700, Gilberto Agostinho wrote:
What about this?

\version "2.19.2"

barlines = \relative c' {
  \set Timing.defaultBarType = ";"
  \repeat unfold 4 {
    \repeat unfold 3 { s s s s }
    \bar "|"
  }
}

music = \relative c' {
  \repeat unfold 12 {c d e f}
}

\score {
  \new Staff <<
    \new Voice \music
    \new Voice \barlines
  >>
}

Thanks Gilberto, that's simpler and better than anything I would have cooked up.  And by simply using:
\version "2.19.2"

barlines = {
  \set Timing.defaultBarType = ";"
  \repeat unfold 3 { s1 }
  \bar "|"
}

\relative c' {
  <<
     \repeat unfold 12 {c d e f}
     \\
     \repeat unfold 4 \barlines
  >>
}

I can make use of this technique in the middle of a much longer piece.

-- Graham
reply via email to

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