Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Polyrhythmic staves
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!
Polyrhythmic pieces (with different rhythms in different staves) are not processed propperly with default settings. The BarLines crash as well as Timing. The solution is to assign the respective engravers to the Staff context. <lilypond version="2.24.0"> % For polyrhythmic pieces we have to remove some engravers % from score context and assign them to staff context. % This snippet makes no use of Repeat_acknowledge_engraver and Volta_engraver % But to make it easier to adapt the snippet to different needs, % these engravers are mentioned here, too. You will need them as soon as you use \repeat. upperVoice = \relative c'' { \override Staff.BarLine.allow-span-bar = ##f \time 3/4 e4 f g a g f % since Staff.BarLine.allow-span-bar is set to ##f, bar lines are not connected e f g % if we want the BarLines of the Staves to be connected, we have to turn it on again a g f\bar"|." \once \override Staff.BarLine.allow-span-bar = ##t } lowerVoice = \relative c'' { \time 4/4 c1 c1 c1\bar"|." } \score { \new StaffGroup << \new Staff << \new Voice { \upperVoice } >> \new Staff << \new Voice { \lowerVoice } >> >> \layout { \context { \Score \remove "Timing_translator" %\remove "Repeat_acknowledge_engraver" %\remove "Volta_engraver" } \context{ \Staff \consists "Timing_translator" %\consists "Repeat_acknowledge_engraver" %\consists "Volta_engraver" } } } </lilypond> [[Category:Staff notation]] [[Category:Rhythms]] [[Category:Staff notation]] [[Category:Contexts and engravers]] [[Category:Contemporary notation]]
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)