[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: Special handling for .|:-|| barline type?
From: Flaming Hakama by Elaine <elaine () flaminghakama ! com>
Date: 2015-04-30 23:58:17
Message-ID: CACX-=8wswTzpa8xHZvSEeyzc+4XQDg6c+tid1mOJHtWUT4gt1g () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Steven,
> From: Steven Weber <panteck@Hotmail.com>
> Subject: Special handling for .|:-|| barline type?
>
> I've run across a
> problem with repeats at breaks (double bar on the previous line, start
> repeat sign on the start of the next line). Whenever I attempt to override
> the stencil in any way, I lose the || bar at the end of the line (it gets
> replaced with another .|: bar).
>
> Minimal example attached - any suggestions on what I need to do to maintain
> the .|:--|| behavior? Is this a case where I'd have to use
> before/after-line-breaking?
>
> Thanks!
>
> --Steven
>
The trick is to define a missing barline definition.
What is not obvious is that each barline definition has a few cases.
These correspond to how it is treated before a line break, in the middle of
a line, and after a line break.
http://www.lilypond.org/doc/v2.19/Documentation/notation/bars
So, you'll want to define a repeat barline that prints as a double bar line
at the end of the preceding line.
Then you need to use that barline explicitly for your volta.
Here is the one I use, which does the same thing except it also uses the
bigger flags "[|:".
You can probably fiddle with that part of it to get what you want, if you
want no flags on the repeat.
Sorry, I didn't look at your example. I'm not too fond of attachments, and
I don't think it really matters in this case. You aren't doing anything
wrong, you just need to fill out this missing piece of 'pond.
\version "2.18.0"
% The missing definition.
\defineBarLine "||.[|:" #'("||" "[|:" "")
\new PianoStaff <<
\new Staff { \clef treble \key c\major \time 4/4
% No need to add tweak barline at the end here, since it is being
covered by the new repeat.
<g c' e'> <a c' f'> <g c' e'> <a c' f'> | \break
% Use the barline here
\bar "||.[|:"
\repeat volta 2 {
<g c' e'> <a c' f'> <g c' e'> <a c' f'> |
}
% If you like the big flags, use the corresponding end repeat here.
\bar ":|]"
}
\new Staff { \clef bass \key c\major \time 4/4
<c, c>4 <d, d> <c, c>4 <d, d> |
<c, c>4 <d, d> <c, c>4 <d, d> |
}
>>
HTH,
David Elaine Alt
415 . 341 .4954 "*Confusion is
highly underrated*"
elaine@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_extra">Steven,<br></div><div \
class="gmail_extra"><div class="gmail_quote"> <br><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div id=":sf" class="" \
style="overflow:hidden">
From: Steven Weber <panteck@Hotmail.com><br>
Subject: Special handling for .|:-|| barline type?<br>
<br>
I've run across a<br>
problem with repeats at breaks (double bar on the previous line, start<br>
repeat sign on the start of the next line). Whenever I attempt to override<br>
the stencil in any way, I lose the || bar at the end of the line (it gets<br>
replaced with another .|: bar).<br>
<br>
Minimal example attached - any suggestions on what I need to do to maintain<br>
the .|:--|| behavior? Is this a case where I'd have to use<br>
before/after-line-breaking?<br>
<br>
Thanks!<br>
<br>
--Steven</div></blockquote></div><br></div><div class="gmail_extra">The trick is to \
define a missing barline definition.<br><br>What is not obvious is that each barline \
definition has a few cases. <br>These correspond to how it is treated before a line \
break, in the middle of a line, and after a line break.<br><a \
href="http://www.lilypond.org/doc/v2.19/Documentation/notation/bars">http://www.lilypond.org/doc/v2.19/Documentation/notation/bars</a><br><br>So, \
you'll want to define a repeat barline that prints as a double bar line at the \
end of the preceding line.<br>Then you need to use that barline explicitly for your \
volta.<br><br>Here is the one I use, which does the same thing except it also uses \
the bigger flags "[|:".<br>You can probably fiddle with that part of it to \
get what you want, if you want no flags on the repeat.<br><br></div><div \
class="gmail_extra">Sorry, I didn't look at your example. I'm not too fond \
of attachments, and I don't think it really matters in this case. You \
aren't doing anything wrong, you just need to fill out this missing piece of \
'pond.<br><br></div><div class="gmail_extra"><br>\version \
"2.18.0"<br><br>% The missing definition.<br>\defineBarLine \
"||.[|:" #'("||" "[|:" "")<br> <br>\new \
PianoStaff <<<br> <br> \new Staff { \clef treble \key c\major \time \
4/4<br><br> % No need to add tweak barline at the end here, since it is being \
covered by the new repeat.<br> <g c' e'> <a c' f'> \
<g c' e'> <a c' f'> | \break<br><br> % Use the \
barline here<br> \bar "||.[|:"<br><br> \repeat volta 2 {<br> \
<g c' e'> <a c' f'> <g c' e'> <a c' \
f'> |<br> }<br><br> % If you like the big flags, use the \
corresponding end repeat here.<br> \bar ":|]"<br> }<br><br> \new \
Staff { \clef bass \key c\major \time 4/4<br> <c, c>4 <d, d> <c, \
c>4 <d, d> |<br> <c, c>4 <d, d> <c, c>4 <d, d> \
|<br> }<br><br>>><br><br><br></div><div \
class="gmail_extra">HTH,<br></div><div class="gmail_extra"><br></div><div \
class="gmail_extra">David Elaine Alt<br><div><div class="gmail_signature"><div \
dir="ltr"><div><div>415 . 341 .4954 \
"<i>Confusion is highly underrated</i>"<br></div><a \
href="mailto:elaine@flaminghakama.com" \
target="_blank">elaine@flaminghakama.com</a><br></div><font face="arial" \
color="black" size="2"><a href="http://self-immolation.info" \
target="_blank">self-immolation.info</a><br>
</font>skype: flaming_hakama<br><font face="arial" color="black" size="2">Producer ~ \
Composer ~ Instrumentalist<br></font>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-</div></div></div>
</div></div>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic