[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Delete new LSR-snippet?
From: |
Thomas Morley |
Subject: |
Re: Delete new LSR-snippet? |
Date: |
Sat, 24 Dec 2016 01:15:51 +0100 |
2016-12-24 0:53 GMT+01:00 Knut Petersen <address@hidden>:
> 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