[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: Missing opening repeat after double bar
From: Hans Aikema <hans.aikema () aikebah ! net>
Date: 2023-11-18 13:33:15
Message-ID: 982D8300-ACED-4C40-88DA-B3BFEDAB197E () aikebah ! net
[Download RAW message or body]
> On 18 Nov 2023, at 14:29, Hans Aikema <hans.aikema@aikebah.net> wrote:
>
> And then I realised…. It can even be done in a simpler way: swap out the \bar"||" \
> custom bar for \section and lilypond already knows that it should create both a \
> section-end bar at the end and a repeat-start at the start of the next line
> \repeat volta 2 {
> c1
> } \break
> c1 \section
> \break
> \repeat volta 2 {
> c1
> } \break
>
Which upon searching for \section in the documentation I even discovered to be used \
in the documentation for the automatic barlines \
https://lilypond.org/doc/v2.25/Documentation/notation/automatic-bar-lines
>
> > On 18 Nov 2023, at 14:26, Peter Mayes <peter@petermayes.org> wrote:
> >
> > Many thanks.
> >
> > I think there is a typo in what you supplied, but with the documentation \
> > reference, I got what I wanted:
> > \defineBarLine "||.|:" #'("||" ".|:" #f)
> >
> > I needed "#'" before the definition, and I reversed the order of the arguments, \
> > to get the double bar before the opening repeat bar.
> > Your help much appreciated!
> >
> > Peter
> >
> > On 18/11/2023 12:56, Hans Aikema wrote:
> > >
> > >
> > > > On 18 Nov 2023, at 13:30, Peter Mayes <peter@petermayes.org> \
> > > > <mailto:peter@petermayes.org> wrote:
> > > > The score I am trying to emulate has an initial repeated section, a \
> > > > non-repeated section, and another repeated section. The non-repeated section \
> > > > ends with a double bar line, but when I add this (as in bar 7 below), it \
> > > > suppresses the opening repeat in the following section (in bar 8). I want \
> > > > both the double bar, AND the opening repeat. How to achieve this?
> > > > Thanks in advance!
> > > >
> > > Peter,
> > >
> > > You can get what you desire with a dedicated custom-defined barline
> > >
> > > I modified your example to get the desired carline behaviour in-between measure \
> > > 2 and 3
> > > \version "2.25.4"
> > >
> > > \paper { ragged-right = ##t }
> > > % See also https://lilypond.org/doc/v2.24/Documentation/notation/bars#bar-lines
> > > \defineBarLine "||.|:" (".|:" "||" #f)
> > >
> > > music = \relative c'' {
> > > \key c \major
> > > \time 4/4
> > > \repeat volta 2 {
> > > c1
> > > } \break
> > > c1 \bar "||.|:"
> > > \break
> > > \repeat volta 2 {
> > > c1
> > > } \break
> > > \repeat volta 2 {
> > > c1
> > > } \break
> > > c1 \bar "||"
> > > \break
> > > \repeat volta 2 {
> > > c1
> > > }
> > > }
> > > \score {
> > > \new Staff {
> > > \music
> > > }
> > > \layout {}
> > > }
> > > > --
> > > >
> > > > Best wishes -- Peter
> > > > --
> > > > Peter Mayes
> > >
> > --
> > Best wishes -- Peter
> > --
> > Peter Mayes
> > 07460 890503
>
[Attachment #3 (unknown)]
<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: \
space; line-break: after-white-space;"><br><div><br><blockquote type="cite"><div>On \
18 Nov 2023, at 14:29, Hans Aikema <hans.aikema@aikebah.net> wrote:</div><br \
class="Apple-interchange-newline"><div><meta http-equiv="content-type" \
content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; \
-webkit-nbsp-mode: space; line-break: after-white-space;">And then I realised…. It \
can even be done in a simpler way: swap out the \bar"||" custom bar for \section and \
lilypond already knows that it should create both a section-end bar at the end and a \
repeat-start at the start of the next line<div><br></div><div><div> \repeat \
volta 2 {</div><div> c1</div><div> } \break</div><div> c1 \
\section</div><div> \break</div><div> \repeat volta 2 {</div><div> \
c1</div><div> } \
\break</div><div><br></div></div></div></div></blockquote><div><br></div>Which upon \
searching for \section in the documentation I even discovered to be used in the \
documentation for the automatic barlines</div><div><a \
href="https://lilypond.org/doc/v2.25/Documentation/notation/automatic-bar-lines">https \
://lilypond.org/doc/v2.25/Documentation/notation/automatic-bar-lines</a></div><div><br></div><div><br><blockquote \
type="cite"><div><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;"><div><div><br><blockquote type="cite"><div>On 18 Nov \
2023, at 14:26, Peter Mayes <peter@petermayes.org> wrote:</div><br \
class="Apple-interchange-newline"><div>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div><p>Many thanks.</p><p>I think there is a typo in what you supplied, but with \
the
documentation reference, I got what I wanted:</p><p> \defineBarLine \
"||.|:" #'("||" ".|:" #f)<br> </p><p>I needed "#'" before the definition, and I \
reversed the order of the arguments, to get the double bar before the opening repeat
bar.</p><p>Your help much appreciated!</p><p>Peter<br>
</p>
<div class="moz-cite-prefix">On 18/11/2023 12:56, Hans Aikema wrote:<br>
</div>
<blockquote type="cite" \
cite="mid:27A47B14-90AF-46F7-AD9A-8954DC6D8292@aikebah.net"> <meta \
http-equiv="content-type" content="text/html; charset=UTF-8"> <br>
<div><br>
<blockquote type="cite">
<div>On 18 Nov 2023, at 13:30, Peter Mayes
<a class="moz-txt-link-rfc2396E" \
href="mailto:peter@petermayes.org"><peter@petermayes.org></a> wrote:</div> <br \
class="Apple-interchange-newline"> <div>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div><p>The score I am trying to emulate has an initial
repeated section, a non-repeated section, and another
repeated section. The non-repeated section ends with a
double bar line, but when I add this (as in bar 7
below), it suppresses the opening repeat in the
following section (in bar 8). I want both the double
bar, AND the opening repeat. How to achieve this?</p><p>Thanks in \
advance!<br> </p>
</div>
</div>
</blockquote>
Peter,</div>
<div><br>
</div>
<div>You can get what you desire with a dedicated custom-defined
barline</div>
<div><br>
</div>
<div>I modified your example to get the desired carline behaviour
in-between measure 2 and 3</div>
<div><br>
</div>
<div>
<div>\version "2.25.4"</div>
<div><br>
</div>
<div>\paper { ragged-right = ##t }</div>
<div>% See also
<a class="moz-txt-link-freetext" \
href="https://lilypond.org/doc/v2.24/Documentation/notation/bars#bar-lines">https://lilypond.org/doc/v2.24/Documentation/notation/bars#bar-lines</a></div>
<div>\defineBarLine "||.|:" (".|:" "||" #f)</div>
<div><br>
</div>
<div>music = \relative c'' {</div>
<div> \key c \major</div>
<div> \time 4/4</div>
<div> \repeat volta 2 {</div>
<div> c1</div>
<div> } \break</div>
<div> c1 \bar "||.|:"</div>
<div> \break</div>
<div> \repeat volta 2 {</div>
<div> c1</div>
<div> } \break</div>
<div> \repeat volta 2 {</div>
<div> c1</div>
<div> } \break</div>
<div> c1 \bar "||"</div>
<div> \break</div>
<div> \repeat volta 2 {</div>
<div> c1</div>
<div> }</div>
<div>}</div>
<div>\score {</div>
<div> \new Staff {</div>
<div> \music</div>
<div> }</div>
<div> \layout {}</div>
<div>}</div>
<blockquote type="cite">
<div>
<div><p>-- </p>
<pre class="moz-signature" cols="72">Best wishes -- Peter
--
Peter Mayes
</pre>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
Best wishes -- Peter
--
Peter Mayes
07460 890503</pre>
</div>
</div></blockquote></div><br></div></div></div></blockquote></div><br></body></html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic