On 15 October 2010 22:03, Trevor Daniels <[email protected]> wrote:
>
> Antheo wrote Friday, October 15, 2010 9:49 PM
>>
>> Anyone would have any idea how to accomplish this?
>
> I'm sure someone would have replied by now if they
> knew how to do it.
Use ly:item-break-dir to find out where the bar number is, then set
font-size based on its direction:
\version "2.13.36"
\paper { ragged-right = ##t }
\relative c' {
\set Score.barNumberVisibility = #all-bar-numbers-visible
\override Score.BarNumber #'break-visibility = #end-of-line-invisible
\override Score.BarNumber #'stencil =
#(lambda (grob)
(let ((break-dir (ly:item-break-dir grob)))
(set! (ly:grob-property grob 'font-size)
(if (= break-dir RIGHT)
-2
-4))
(ly:text-interface::print grob)))
\bar ""
c1 | c1 \break
c1 | c1
}
Cheers,
Neil
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user