<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lilypond.community/index.php?action=history&amp;feed=atom&amp;title=Incrementing_bar_numbers_in_volta_repeats</id>
	<title>Incrementing bar numbers in volta repeats - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lilypond.community/index.php?action=history&amp;feed=atom&amp;title=Incrementing_bar_numbers_in_volta_repeats"/>
	<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;action=history"/>
	<updated>2026-05-10T05:46:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;diff=4935&amp;oldid=prev</id>
		<title>Lemzwerg: New category</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;diff=4935&amp;oldid=prev"/>
		<updated>2025-11-21T23:36:42Z</updated>

		<summary type="html">&lt;p&gt;New category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:36, 21 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l133&quot;&gt;Line 133:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 133:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Repeats]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Repeats]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Workaround]][[Category:Snippet]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Workaround]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Snippet]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lemzwerg</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;diff=3591&amp;oldid=prev</id>
		<title>Lemzwerg at 22:54, 21 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;diff=3591&amp;oldid=prev"/>
		<updated>2025-11-21T22:54:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:54, 21 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l133&quot;&gt;Line 133:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 133:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Repeats]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Repeats]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Workaround]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Workaround&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]][[Category:Snippet&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lemzwerg</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;diff=2659&amp;oldid=prev</id>
		<title>Jean Abou Samra: Replace version=&quot;2.24.0&quot; with version=&quot;2.24&quot; now that the LilyWiki extension supports auto-selecting the latest release in a stable series</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;diff=2659&amp;oldid=prev"/>
		<updated>2025-11-16T18:53:39Z</updated>

		<summary type="html">&lt;p&gt;Replace version=&amp;quot;2.24.0&amp;quot; with version=&amp;quot;2.24&amp;quot; now that the LilyWiki extension supports auto-selecting the latest release in a stable series&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:53, 16 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a hack that increments the &amp;lt;code&amp;gt;currentBarNumber&amp;lt;/code&amp;gt; property whenever volta repeats occur. It also offers basic (though limited) support for alternatives.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a hack that increments the &amp;lt;code&amp;gt;currentBarNumber&amp;lt;/code&amp;gt; property whenever volta repeats occur. It also offers basic (though limited) support for alternatives.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;lilypond version=&quot;2.24&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.0&lt;/del&gt;&quot; full&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;lilypond version=&quot;2.24&quot; full&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% possible workaround for issue #5031 -vv&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% possible workaround for issue #5031 -vv&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% Limitations may (and will) occur for complex&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;%% Limitations may (and will) occur for complex&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;diff=923&amp;oldid=prev</id>
		<title>Jean Abou Samra: Import snippet from LSR</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Incrementing_bar_numbers_in_volta_repeats&amp;diff=923&amp;oldid=prev"/>
		<updated>2025-10-26T22:50:26Z</updated>

		<summary type="html">&lt;p&gt;Import snippet from LSR&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are different ideas of bar numbering: counting bars as written or as played/heard. In other words: volta repeats might be counted only once or as often as they are played. Only the former is officially supported, but the latter is used by respectable publications such as the &amp;#039;&amp;#039;Neue Bach-Ausgabe&amp;#039;&amp;#039;. This has also been reported in ensemble music where some parts are printed with volta repeats whereas others (as well as the conductor) are printed as “unfolded”.&lt;br /&gt;
&lt;br /&gt;
Here is a hack that increments the &amp;lt;code&amp;gt;currentBarNumber&amp;lt;/code&amp;gt; property whenever volta repeats occur. It also offers basic (though limited) support for alternatives.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lilypond version=&amp;quot;2.24.0&amp;quot; full&amp;gt;&lt;br /&gt;
%% possible workaround for issue #5031 -vv&lt;br /&gt;
%% Limitations may (and will) occur for complex&lt;br /&gt;
%% cases with multiple alternatives.&lt;br /&gt;
&lt;br /&gt;
%% Due to heavily changed and extended internals for \repeat volta the&lt;br /&gt;
%% former 2.22.2-code is replaced by an engraver. As bonus this engravers covers&lt;br /&gt;
%% more cases of complex alternatives --harm&lt;br /&gt;
&lt;br /&gt;
Unfold_bar_numbers_engraver =&lt;br /&gt;
  #(lambda (ctx)&lt;br /&gt;
     (let* ((repeat-start #f)&lt;br /&gt;
            (alternative-starts &amp;#039;())&lt;br /&gt;
            (repeat-count #f))&lt;br /&gt;
       (make-engraver&lt;br /&gt;
         (listeners&lt;br /&gt;
           ((volta-repeat-start-event engraver event)&lt;br /&gt;
             ;; A \repeat volta &amp;lt;number&amp;gt; { ... } starts.&lt;br /&gt;
             ;; Get and store &amp;#039;repeat-count and &amp;#039;currentBarNumber.&lt;br /&gt;
             ;; At this point of time it&amp;#039;s not yet know whether alternatives&lt;br /&gt;
             ;; will occurr.&lt;br /&gt;
             (set! repeat-count&lt;br /&gt;
                   (ly:event-property event &amp;#039;repeat-count))&lt;br /&gt;
             (set! repeat-start&lt;br /&gt;
                   (ly:context-property ctx &amp;#039;currentBarNumber)))&lt;br /&gt;
&lt;br /&gt;
           ((volta-span-event engraver event)&lt;br /&gt;
             ;; If &amp;#039;volta-span-event happens, alternatives are present.&lt;br /&gt;
             ;; Get and store (in a accumulates list) the bar numbers&lt;br /&gt;
             ;; when an alternative starts.&lt;br /&gt;
             (let ((volta-numbers (ly:event-property event &amp;#039;volta-numbers)))&lt;br /&gt;
               (set! alternative-starts&lt;br /&gt;
                     (cons&lt;br /&gt;
                       (ly:context-property ctx &amp;#039;currentBarNumber)&lt;br /&gt;
                       alternative-starts))))&lt;br /&gt;
&lt;br /&gt;
           ((volta-repeat-end-event engraver event)&lt;br /&gt;
             ;; &amp;#039;volta-repeat-end-event is triggered at the end of the first&lt;br /&gt;
             ;; alternative or at the end of the repeat-setion, if no&lt;br /&gt;
             ;; alternatives are present.&lt;br /&gt;
             ;; For bar numbering this means we need to know the lengths of&lt;br /&gt;
             ;; the alternatives and the length of repeat-start to begin of&lt;br /&gt;
             ;; first alternative.&lt;br /&gt;
             (let* ((curr-bar-number&lt;br /&gt;
                      (ly:context-property ctx &amp;#039;currentBarNumber))&lt;br /&gt;
                    ;; We call &amp;#039;alternative-number in order to know whether&lt;br /&gt;
                    ;; alternatives are present at all.&lt;br /&gt;
                    (alternative-number&lt;br /&gt;
                      (ly:event-property event &amp;#039;alternative-number #f))&lt;br /&gt;
                    ;; We call &amp;#039;return-count to know how often a certain&lt;br /&gt;
                    ;; alternative is repeated.&lt;br /&gt;
                    (return-count (ly:event-property event &amp;#039;return-count))&lt;br /&gt;
                    ;; Drop bar-numbers lower than the start of current&lt;br /&gt;
                    ;; repeat.&lt;br /&gt;
                    (relevant-alternative-starts&lt;br /&gt;
                      (filter&lt;br /&gt;
                        (lambda (x)&lt;br /&gt;
                          (&amp;gt; x repeat-start))&lt;br /&gt;
                        alternative-starts))&lt;br /&gt;
                    ;; If we have alternatives, calculate their lengths.&lt;br /&gt;
                    (relevant-alternative-lengths&lt;br /&gt;
                      (let lp ((vals-list relevant-alternative-starts))&lt;br /&gt;
                        (if (or (null? vals-list) (odd? (length vals-list)))&lt;br /&gt;
                            &amp;#039;()&lt;br /&gt;
                            (cons&lt;br /&gt;
                              (- (car vals-list) (cadr vals-list))&lt;br /&gt;
                              (lp (drop vals-list 2))))))&lt;br /&gt;
                    ;; Get the length of the repeat body, without first&lt;br /&gt;
                    ;; alternative, if present.&lt;br /&gt;
                    (body-length&lt;br /&gt;
                       (-&lt;br /&gt;
                          (if alternative-number&lt;br /&gt;
                              (last relevant-alternative-starts)&lt;br /&gt;
                              curr-bar-number)&lt;br /&gt;
                          repeat-start)))&lt;br /&gt;
&lt;br /&gt;
               (ly:context-set-property! ctx &amp;#039;currentBarNumber&lt;br /&gt;
                 (+&lt;br /&gt;
                    curr-bar-number&lt;br /&gt;
                    (* body-length return-count)&lt;br /&gt;
                    (*&lt;br /&gt;
                      (if (pair? relevant-alternative-lengths)&lt;br /&gt;
                          (last relevant-alternative-lengths)&lt;br /&gt;
                          0)&lt;br /&gt;
                      (1- return-count))))))))))&lt;br /&gt;
&lt;br /&gt;
mus = {&lt;br /&gt;
  b1&lt;br /&gt;
  \repeat volta 4 { c&amp;#039;1 c&amp;#039; }&lt;br /&gt;
  \alternative {&lt;br /&gt;
    { b b }&lt;br /&gt;
    { d&amp;#039; d&amp;#039; d&amp;#039; }&lt;br /&gt;
    { e&amp;#039; e&amp;#039; e&amp;#039; e&amp;#039; }&lt;br /&gt;
  }&lt;br /&gt;
  b&lt;br /&gt;
  \repeat volta 3 { c&amp;#039; c&amp;#039; d&amp;#039; }&lt;br /&gt;
  \alternative {&lt;br /&gt;
    { b b }&lt;br /&gt;
    { f&amp;#039; }&lt;br /&gt;
  }&lt;br /&gt;
  b&lt;br /&gt;
  \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
\score {&lt;br /&gt;
  \mus&lt;br /&gt;
  \layout {&lt;br /&gt;
    \context {&lt;br /&gt;
      \Score&lt;br /&gt;
      \consists&lt;br /&gt;
      \Unfold_bar_numbers_engraver&lt;br /&gt;
      \override BarNumber.break-visibility = ##(#f #t #t)&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
\score {&lt;br /&gt;
  \unfoldRepeats \mus&lt;br /&gt;
  \layout {&lt;br /&gt;
    \context {&lt;br /&gt;
      \Score&lt;br /&gt;
      \override BarNumber.break-visibility = ##(#f #t #t)&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
\paper { tagline = ##f }&lt;br /&gt;
&amp;lt;/lilypond&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Repeats]]&lt;br /&gt;
[[Category:Workaround]]&lt;/div&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
</feed>