Jump to content

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

From LilyPond wiki
No edit summary
mNo edit summary
 
(2 intermediate revisions 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.
Multi-measure rests in a polyphonic staff are placed differently depending on the voice they belong to. They can be printed on the same staff line using the setting below.  If you omit the <code>\once</code> keyword, the change affects all rests in that follow in the given voice.


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


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


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

Latest revision as of 08:10, 28 December 2025

Multi-measure rests in a polyphonic staff are placed differently depending on the voice they belong to. They can be printed on the same staff line using the setting below. If you omit the \once keyword, the change affects all rests in that follow in the given voice.

\version "2.24"

normalPos = \once \revert MultiMeasureRest.direction

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