2016-12-24 0:53 GMT+01:00 Knut Petersen <knut_peter...@t-online.de>:
> 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 {}
>
>

I once made a work-around to display InstrumentName on the right,
maybe it's usable here as well.

Cheers,
  Harm

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

Reply via email to