lilypond-user
[Top][All Lists]
Advanced

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

Re: Adjacent double bars


From: Nathan Ho
Subject: Re: Adjacent double bars
Date: Sat, 21 Mar 2015 09:57:09 -0700

On Sat, Mar 21, 2015 at 8:38 AM, John McWilliam <address@hidden> wrote:
> Bagpipe music has it's own conventions where each section or part of a tune
> is enclosed in either repeat bars or what I call double bars (\bar ".|" and
> \bar "|."). The end of a part usually coincides with a line break. I have a
> problem with this and find that adjacent barlines with a break in between
> get overridden and one of the bar lines is eliminated. I have tried using
> \bar "||" instead but this does not help. See below:

What you need is \defineBarLine:
http://www.lilypond.org/doc/v2.18/Documentation/notation/bars

\version "2.18.0"

\defineBarLine ":|.-.|" #'(":|." ".|" ":|.")
\defineBarLine "|.-.|" #'("|." ".|" ".|.")

music = \relative c' {
        \key c \major
        \time 4/4
        \bar ".|:"

%Part 1
        \repeat volta 2 {
        \partial 8 a8
        a4. a8 b4. b8
        c4. c8 d4.
        \break }

%Part 2
        \bar ":|.-.|"
        e8 |e4. e8 f4. f8
        g4. g8 a4.
        a8 b4. b8 c4.
        \break

%Part 3
        \bar "|.-.|"
        a8 |
        a4. a8 b4. b8
        c4. c8 d4. \bar "|."
        \break

}% end relative

\score {
   \new Staff \music
}

Regards,
Nathan



reply via email to

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