Hi,

with a little bit of digging through your manual, i have solved some
of my questions:

#(define (counter-stencil grob)
   (let* ((counter (ly:grob-property grob 'text)))  ; get the value of
the counter
     (ly:stencil-aligned-to
       (grob-interpret-markup grob
         (markup counter "!")) ; print the counter back with !
       Y
       CENTER)))

This basically replicates the behaviour of the regular percent counter
and adds an exclamation mark. so now i can just add some if/mod/div
magic and it should do what I want. Getting thereā€¦ ;)

Kind regards,
sb

Reply via email to