Shortening volta brackets: Difference between revisions
Appearance
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 |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
By default, | By default, volta brackets are drawn over all of the alternative music, but it is possible to shorten them by setting <code>voltaSpannerDuration</code>. In the snippet, the bracket spans onle a single measure, which has a duration of 3/4. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
| Line 19: | Line 19: | ||
[[Category:Repeats]] | [[Category:Repeats]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 10:50, 4 December 2025
By default, volta brackets are drawn over all of the alternative music, but it is possible to shorten them by setting voltaSpannerDuration. In the snippet, the bracket spans onle a single measure, which has a duration of 3/4.
\version "2.24"
\relative c'' {
\time 3/4
c4 c c
\set Score.voltaSpannerDuration = #(ly:make-moment 3/4)
\repeat volta 5 {
d4 d d
\alternative {
\volta 1,2,3,4 {
e4 e e
f4 f f }
\volta 5 {
g4 g g } } }
}