Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Polymetric section: printing full-measure rests
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This situation seems to come up when the following conditions are met:<br /> * We are using a global “invisible” voice in every staff for line breaking. * The music in one or more staves is compressed so that its barlines are out of sync with the barlines of the global voice. <br /> The problem is that although notes and ordinary rests compress in the offending staves, full measure rests adhere to the time of the global voice.<br /> The solution is to scale the \time value for offending staves by a fraction of the global voice full-measure rest length.<br /> In the example below, there are nine 3/8 measures in the time of four 3/8 measures. The nine are therefore compressed by 4/9ths. To get appropriate length full-measure rests in the nine, we must set the \time value for the nine bars to 4/9ths of 3/8, or 1/6.<br /> We can then display a “dummy” 3/8 time signature.<br /> You can see the error by replacing the 1/6 with 3/8 in the compressMusic block. <lilypond version="2.24"> %% http://lsr.di.unimi.it/LSR/Item?id=329 \paper { ragged-right = ##t } \layout { \context { \Score \remove "Timing_translator" \remove "Time_signature_engraver" \override SpacingSpanner.uniform-stretching = ##t \override SpacingSpanner.strict-note-spacing = ##t proportionalNotationDuration = #(ly:make-moment 1/64) } \context { \Staff \consists "Timing_translator" \consists "Time_signature_engraver" } } global = { \set Timing.measureBarType = "" \repeat unfold 4 { s4. } \bar "" \break } \new Score { << \new StaffGroup { << \new Staff << \global { \time 3/8 \repeat unfold 2 { R4. \bar "|" c'8[c'8 c'8] \bar "|" } } >> \new Staff << \global { \scaleDurations #'(4 . 9) { \time 1/6 \set Staff.timeSignatureFraction = #'(3 . 8) \repeat unfold 3 { R4. \bar "|" c'8[c'8 c'8] \bar "|" R4. \bar "|"} } } >> >> } >> } </lilypond> [[Category:Contemporary notation]] [[Category:Contemporary notation]] [[Category:Rhythms]] [[Category:Specific notation]] [[Category:Workaround]] [[Category:Contexts and engravers]] [[Category:Snippet]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)