lilypond-user
[Top][All Lists]
Advanced

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

Re: I ought to have a bar line here...


From: Aaron Hill
Subject: Re: I ought to have a bar line here...
Date: Sat, 24 Oct 2020 20:38:23 -0700
User-agent: Roundcube Webmail/1.4.9

On 2020-10-24 5:05 pm, Mike Dean wrote:
...between the end of the first section and the start of the Trio, but have
stumped myself in properly coding it (I went to alternative endings to
ensure that I had a repeat sign)
(PDF and .ly file attached, beside the snippet below)
[...]

You have to use a special bar line type when it breaks across a line:

%%%%
\version "2.20.0"
\paper { indent = 0 line-width = 3\cm ragged-right = ##f }

\markup \bold \typewriter "\".|:-||\""
{ R1 \bar ".|:-||" \break R1 }

\markup \vspace #1

\defineBarLine ".|:-|." #'("|." ".|:" #f)
\markup \bold \typewriter "\".|:-|.\""
{ R1 \bar ".|:-|." \break R1 }
%%%%

As shown in the second example, sometimes you need to define your own custom type if LilyPond does not provide what you need already.


-- Aaron Hill

Attachment: barlines.cropped.png
Description: PNG image


reply via email to

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