lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Constant sized rehersal marks?


From: Trevor Bača
Subject: Re: Constant sized rehersal marks?
Date: Mon, 30 Mar 2015 11:21:46 -0400

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 <address@hidden> 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:  address@hidden




--
Trevor Bača
address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]