Hi Kieren,

This looks like exactly what I need.

I must a bit slow this morning, but to what do you assign the
format-oval-barnumbers function?

Setting ...

   \override BarNumber.stencil = #format-oval-barnumbers

... gives an error, and I must be missing something simple, yes?

Trevor.

On Sun, Mar 29, 2015 at 9:11 PM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

> Hi Trevor,
>
> > Is there some Scheme-ish way to do that with the "\set
> Score.markFormatter = #format-mark-circle-numbers" context setting?
>
> In my Henle stylesheet, I see I used the following:
>
> #(define-markup-command (oval layout props arg)
>  (markup?)
>  #:properties ((thickness 1)
>                (font-size 0)
>                (oval-padding 0.75))
>  (let ((th (* (ly:output-def-lookup layout 'line-thickness)
>               thickness))
>        (pad (* (magstep font-size) oval-padding))
>        (m (interpret-markup layout props (markup #:hcenter-in 1.5 arg))))
>    (oval-stencil m th pad (* pad 1.5))))
>
> #(define (format-oval-barnumbers barnum measure-pos alt-number context)
>  (make-oval-markup
>   (robust-bar-number-function barnum measure-pos alt-number context)))
>
> That seemed to work, at least for small-ish numbers.
> Maybe that will give you some clues on how to solve your problem?
>
> Hope this helps!
> Kieren.
>
> _______________________
>
> Kieren MacMillan, composer
> www:  <http://www.kierenmacmillan.info>
> email:  i...@kierenmacmillan.info
>
>


-- 
Trevor Bača
trevorb...@gmail.com
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to