[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Whole Measure Rests again -- how to draw ledger line?
From: |
Dmytro O. Redchuk |
Subject: |
Whole Measure Rests again -- how to draw ledger line? |
Date: |
Mon, 5 Jan 2009 10:16:30 +0200 |
Hi again,
i'm again with question regarding whole measure rests.
As Neil suggested, i'm trying to override 'stencil and position rest over a bar.
But what if i need raise or lower this rest for one of two (or more) voices
to avoid collision? How to draw a ledger line (it isn't drawn automatically)?
Thank you.
\version "2.12.1"
posMMR =
#(define-music-function (parser location X Y)
(number? number?)
#{
\override MultiMeasureRest #'stencil = #ly:text-interface::print
\override MultiMeasureRest #'text = \markup {\musicglyph #"rests.0"}
\override MultiMeasureRest #'X-offset = #$X
\override MultiMeasureRest #'staff-position = #$Y
#})
melody = {
\time 6/4
R1*6/4
\time 7/4
R1*7/4
\time 8/4
R1*8/4
\time 9/4
\posMMR #5.2 #2
R1*9/4
\time 10/4
\posMMR #5.7 #6 % too high; ledger line must be drawn here
R1*10/4
\time 11/4
\posMMR #6.5 #2
R1*11/4
}
\score {
\new Staff { \melody }
\layout {
\context {
\Staff
\remove "Time_signature_engraver"
}
}
}
--
Dmytro O. Redchuk
- Whole Measure Rests again -- how to draw ledger line?,
Dmytro O. Redchuk <=