|
From: | Knut Petersen |
Subject: | Re: Delete new LSR-snippet? |
Date: | Sat, 24 Dec 2016 00:53:40 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
Hi Trevor!
I seem to remember a post or maybe an LSR entry for placing divisi arrows at the end of a staff. Maybe this could be adapted to achieve the same effect more reliably? Found it - LSR 650. It modifies the barline stencil.
Something like the following code could be a base: \version "2.19.53" mpBarLine = { \once \override Staff.BarLine #'stencil = #(lambda (grob) (ly:stencil-combine-at-edge (ly:bar-line::print grob) X RIGHT (grob-interpret-markup grob mpBarLineMarkup) 0)) \break } mpBarLineMarkup = \markup \with-dimensions #'(0 . 0) #'(0 . 0) { \line {\hspace #3 \override #'(line-width . 20) \justify{This is a marginal note} } } \paper { left-margin = 2\cm line-width = 14\cm indent = 0\cm ragged-right = ##f } { \repeat unfold 16 { c'' 4 } \break \repeat unfold 16 { c'' 4 } \mpBarLine \repeat unfold 16 { c'' 4 } \bar "|." } \layout {}
[Prev in Thread] | Current Thread | [Next in Thread] |