Knut Petersen wrote Friday, December 23, 2016 11:53 PM

Harm, would this be a better snippet for the LSR?

>> 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 {}

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to