Jump to content

Setting the double repeat default for volte: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(4 intermediate revisions by 2 users 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.0">
<lilypond version="2.24">
\relative c'' {
\relative c'' {
   \repeat volta 2 { c1 }
   \repeat volta 2 { c1 }
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 }
}