Jump to content

Setting the double repeat default for volte: Difference between revisions

From LilyPond wiki
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
There are three different styles of double repeats for volte, that can be set using <code>doubleRepeatBarType</code>.
There are different double repeat styles for volte that can be selected using the context property <code>doubleRepeatBarType</code>.


<lilypond version="2.24">
<lilypond version="2.24">
Line 15: Line 15:
[[Category:Repeats]]
[[Category:Repeats]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 12:45, 9 December 2025

There are different double repeat styles for volte that can be selected using the context property doubleRepeatBarType.

\version "2.24"

\relative c'' {
  \repeat volta 2 { c1 }
  \set Score.doubleRepeatBarType = ":..:"
  \repeat volta 2 { c1 }
  \set Score.doubleRepeatBarType = ":|.|:"
  \repeat volta 2 { c1 }
  \set Score.doubleRepeatBarType = ":|.:"
  \repeat volta 2 { c1 }
}