Jump to content

Merging multi-measure rests in a polyphonic part: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
When using multi-measure rests in a polyphonic staff, the rests will be placed differently depending on the voice they belong to. However they can be printed on the same staff line, using the following setting.
When using multi-measure rests in a polyphonic staff, rests are placed differently depending on the voice they belong to. However, they can be printed on the same staff line, using the following setting.


<lilypond version="2.24">
<lilypond version="2.24">
normalPos = \revert MultiMeasureRest.direction
normalPos = \revert MultiMeasureRest.direction


{
<<
  <<
  { c''1 R1 c''1 \normalPos R1 } \\
    {
  { c'1 R1 c'1 \normalPos R1 }
      c''1
>>
      R1
      c''1
      \normalPos
      R1
    }
    \\
    {
      c'1
      R1
      c'1
      \normalPos
      R1
    }
  >>
}
</lilypond>
</lilypond>


[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Version-specific]]
[[Category:Really simple]]
[[Category:Really simple]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 12:03, 30 November 2025

When using multi-measure rests in a polyphonic staff, rests are placed differently depending on the voice they belong to. However, they can be printed on the same staff line, using the following setting.

\version "2.24"

normalPos = \revert MultiMeasureRest.direction

<<
  { c''1 R1 c''1 \normalPos R1 } \\
  { c'1  R1 c'1  \normalPos R1 }
>>