Jump to content

Add wings to all repeat barlines (simple version): Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
After switching from Sibelius, I missed having all my repeat barlines have "wings" on them. It's not documented in the Lilypond documentation, but it's not too hard to accomplish. Just add this inside your Staff:
After switching from Sibelius, I missed having all my repeat barlines have “wings” on them. It's not documented in the LilyPond documentation, but it's not too hard to accomplish. Just add the following inside your staff.


<code> \set Score.startRepeatType = #&quot;[|:&quot; \set Score.endRepeatType = #&quot;:|]&quot; \set Score.doubleRepeatType = #&quot;:|][|:&quot; </code>
\set Score.startRepeatType = #"[|"
\set Score.endRepeatType = #":|]"
\set Score.doubleRepeatType = #":|][|:"


<lilypond version="2.24">
<lilypond version="2.24">
Line 27: Line 29:


[[Category:Repeats]]
[[Category:Repeats]]
[[Category:Tweaks and overrides]][[Category:Snippet]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 07:19, 3 December 2025

After switching from Sibelius, I missed having all my repeat barlines have “wings” on them. It's not documented in the LilyPond documentation, but it's not too hard to accomplish. Just add the following inside your staff.

\set Score.startRepeatType = #"[|"
\set Score.endRepeatType = #":|]"
\set Score.doubleRepeatType = #":|][|:"

\version "2.24"

\language "english"

mel = \relative c'' {
  %% for 2.18.2 use:
  \time 2,3 5/8
  %% with newer versions:
  %\time 2,3 5/8
  \repeat volta 2 { a8 b b b b | }
  \repeat volta 2 {  c8 ds c c b  }
  a8 b b b b
  \repeat volta 2 {  b8 a gs fs e  }

}

<<
  \set Score.startRepeatBarType = #"[|:"
  \set Score.doubleRepeatBarType = #":|][|:"
  \set Score.endRepeatBarType = #":|]"
  \mel
>>