<?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=Merging_rests_automatically</id>
	<title>Merging rests automatically - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lilypond.community/index.php?action=history&amp;feed=atom&amp;title=Merging_rests_automatically"/>
	<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Merging_rests_automatically&amp;action=history"/>
	<updated>2026-05-05T02:22:48Z</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=Merging_rests_automatically&amp;diff=4591&amp;oldid=prev</id>
		<title>Lemzwerg: New category</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Merging_rests_automatically&amp;diff=4591&amp;oldid=prev"/>
		<updated>2025-11-21T23:27:12Z</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:27, 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-l107&quot;&gt;Line 107:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 107:&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:Automatic notation]]&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:Automatic notation]]&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;[[Category:Really cool]]&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:Really cool]]&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=Merging_rests_automatically&amp;diff=3655&amp;oldid=prev</id>
		<title>Lemzwerg at 22:56, 21 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Merging_rests_automatically&amp;diff=3655&amp;oldid=prev"/>
		<updated>2025-11-21T22:56:09Z</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:56, 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-l107&quot;&gt;Line 107:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 107:&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:Automatic notation]]&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:Automatic notation]]&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;[[Category:Really cool]]&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:Really cool]]&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=Merging_rests_automatically&amp;diff=2774&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=Merging_rests_automatically&amp;diff=2774&amp;oldid=prev"/>
		<updated>2025-11-16T18:54:51Z</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:54, 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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;When two (or more) voices on a staff share common rests, common engraving practice merges these rests into one. The following snippet takes care of that, automatically. Please note that multi-measure rests are not automatically combined.&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;When two (or more) voices on a staff share common rests, common engraving practice merges these rests into one. The following snippet takes care of that, automatically. Please note that multi-measure rests are not automatically combined.&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;&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;&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;%% http://lsr.di.unimi.it/LSR/Item?id=336&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;%% http://lsr.di.unimi.it/LSR/Item?id=336&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;%% see also http://code.google.com/p/lilypond/issues/detail?id=1228&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;%% see also http://code.google.com/p/lilypond/issues/detail?id=1228&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=Merging_rests_automatically&amp;diff=185&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=Merging_rests_automatically&amp;diff=185&amp;oldid=prev"/>
		<updated>2025-10-26T22:37:46Z</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;When two (or more) voices on a staff share common rests, common engraving practice merges these rests into one. The following snippet takes care of that, automatically. Please note that multi-measure rests are not automatically combined.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lilypond version=&amp;quot;2.24.0&amp;quot;&amp;gt;&lt;br /&gt;
%% http://lsr.di.unimi.it/LSR/Item?id=336&lt;br /&gt;
%% see also http://code.google.com/p/lilypond/issues/detail?id=1228&lt;br /&gt;
&lt;br /&gt;
%% Usage:&lt;br /&gt;
%%   \new Staff \with {&lt;br /&gt;
%%     \override RestCollision.positioning-done = #merge-rests-on-positioning&lt;br /&gt;
%%   } &amp;lt;&amp;lt; \somevoice \\ \othervoice &amp;gt;&amp;gt;&lt;br /&gt;
%% or (globally):&lt;br /&gt;
%%   \layout {&lt;br /&gt;
%%     \context {&lt;br /&gt;
%%       \Staff&lt;br /&gt;
%%       \override RestCollision.positioning-done = #merge-rests-on-positioning&lt;br /&gt;
%%     }&lt;br /&gt;
%%   } &lt;br /&gt;
%%&lt;br /&gt;
%% Limitations:&lt;br /&gt;
%% - only handles two voices&lt;br /&gt;
%% - does not handle multi-measure/whole-measure rests&lt;br /&gt;
&lt;br /&gt;
#(define (rest-score r)&lt;br /&gt;
  (let ((score 0)&lt;br /&gt;
	(yoff (ly:grob-property-data r &amp;#039;Y-offset))&lt;br /&gt;
	(sp (ly:grob-property-data r &amp;#039;staff-position)))&lt;br /&gt;
    (if (number? yoff)&lt;br /&gt;
	(set! score (+ score 2))&lt;br /&gt;
	(if (eq? yoff &amp;#039;calculation-in-progress)&lt;br /&gt;
	    (set! score (- score 3))))&lt;br /&gt;
    (and (number? sp)&lt;br /&gt;
	 (&amp;lt;= 0 2 sp)&lt;br /&gt;
	 (set! score (+ score 2))&lt;br /&gt;
	 (set! score (- score (abs (- 1 sp)))))&lt;br /&gt;
    score))&lt;br /&gt;
&lt;br /&gt;
#(define (merge-rests-on-positioning grob)&lt;br /&gt;
  (let* ((can-merge #f)&lt;br /&gt;
	 (elts (ly:grob-object grob &amp;#039;elements))&lt;br /&gt;
	 (num-elts (and (ly:grob-array? elts)&lt;br /&gt;
			(ly:grob-array-length elts)))&lt;br /&gt;
	 (two-voice? (= num-elts 2)))&lt;br /&gt;
    (if two-voice?&lt;br /&gt;
	(let* ((v1-grob (ly:grob-array-ref elts 0))&lt;br /&gt;
	       (v2-grob (ly:grob-array-ref elts 1))&lt;br /&gt;
	       (v1-rest (ly:grob-object v1-grob &amp;#039;rest))&lt;br /&gt;
	       (v2-rest (ly:grob-object v2-grob &amp;#039;rest)))&lt;br /&gt;
	  (and&lt;br /&gt;
	   (ly:grob? v1-rest)&lt;br /&gt;
	   (ly:grob? v2-rest)	     	   &lt;br /&gt;
	   (let* ((v1-duration-log (ly:grob-property v1-rest &amp;#039;duration-log))&lt;br /&gt;
		  (v2-duration-log (ly:grob-property v2-rest &amp;#039;duration-log))&lt;br /&gt;
		  (v1-dot (ly:grob-object v1-rest &amp;#039;dot))&lt;br /&gt;
		  (v2-dot (ly:grob-object v2-rest &amp;#039;dot))&lt;br /&gt;
		  (v1-dot-count (and (ly:grob? v1-dot)&lt;br /&gt;
				     (ly:grob-property v1-dot &amp;#039;dot-count -1)))&lt;br /&gt;
		  (v2-dot-count (and (ly:grob? v2-dot)&lt;br /&gt;
				     (ly:grob-property v2-dot &amp;#039;dot-count -1))))&lt;br /&gt;
	     (set! can-merge&lt;br /&gt;
		   (and &lt;br /&gt;
		    (number? v1-duration-log)&lt;br /&gt;
		    (number? v2-duration-log)&lt;br /&gt;
		    (= v1-duration-log v2-duration-log)&lt;br /&gt;
		    (eq? v1-dot-count v2-dot-count)))&lt;br /&gt;
	     (if can-merge&lt;br /&gt;
		 ;; keep the rest that looks best:&lt;br /&gt;
		 (let* ((keep-v1? (&amp;gt;= (rest-score v1-rest)&lt;br /&gt;
				      (rest-score v2-rest)))&lt;br /&gt;
			(rest-to-keep (if keep-v1? v1-rest v2-rest))&lt;br /&gt;
			(dot-to-kill (if keep-v1? v2-dot v1-dot)))&lt;br /&gt;
		   ;; uncomment if you&amp;#039;re curious of which rest was chosen:&lt;br /&gt;
		   ;;(ly:grob-set-property! v1-rest &amp;#039;color green)&lt;br /&gt;
		   ;;(ly:grob-set-property! v2-rest &amp;#039;color blue)&lt;br /&gt;
		   (ly:grob-suicide! (if keep-v1? v2-rest v1-rest))&lt;br /&gt;
		   (if (ly:grob? dot-to-kill)&lt;br /&gt;
		       (ly:grob-suicide! dot-to-kill))&lt;br /&gt;
		   (ly:grob-set-property! rest-to-keep &amp;#039;direction 0)&lt;br /&gt;
		   (ly:rest::y-offset-callback rest-to-keep)))))))&lt;br /&gt;
    (if can-merge&lt;br /&gt;
	#t&lt;br /&gt;
	(ly:rest-collision::calc-positioning-done grob))))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
\score {&lt;br /&gt;
  \new Score &amp;lt;&amp;lt;&lt;br /&gt;
    \new Staff  &amp;lt;&amp;lt;&lt;br /&gt;
      s4-\markup{ LilyPond default, rests in both voices. }&lt;br /&gt;
      \relative c&amp;#039;&amp;#039; { c4 d e r | r2  e4 g | R1 } &lt;br /&gt;
      \\&lt;br /&gt;
      \relative c&amp;#039;&amp;#039; { c4 b a r | r a g2   | R1 }&lt;br /&gt;
    &amp;gt;&amp;gt;       &lt;br /&gt;
    \new Staff \with {&lt;br /&gt;
      \override RestCollision.positioning-done = #merge-rests-on-positioning&lt;br /&gt;
    } &lt;br /&gt;
    &amp;lt;&amp;lt;&lt;br /&gt;
      s4-\markup{Merge rests as per standard notation practice.}&lt;br /&gt;
      \relative c&amp;#039;&amp;#039; { c4 d e r | r2  e4 g | R1 } &lt;br /&gt;
      \\&lt;br /&gt;
      \relative c&amp;#039;&amp;#039; { c4 b a r | r a g2   | R1 }&lt;br /&gt;
    &amp;gt;&amp;gt;   &lt;br /&gt;
  &amp;gt;&amp;gt;&lt;br /&gt;
  \layout {}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lilypond&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Rhythms]]&lt;br /&gt;
[[Category:Automatic notation]]&lt;br /&gt;
[[Category:Really cool]]&lt;br /&gt;
[[Category:Workaround]]&lt;/div&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
</feed>