Right  -- markFormatter needs to be a procedure, so you define it as a
lambda procedure:
\set Score.markFormatter = #(lambda (mark) (fancy-format #f "~@r." mark))
Haven't tested, but this is the general idea.
This lambda procedure needs 2 arguments.
With :
\set Score.markFormatter = #(lambda (mark context) (fancy-format #f "~@r." mark))
It works.

Just a comment :
If you use "format" instead of "fancy-format" it works too.
fancy-format doen't seem to be part of guile, so only a function added by Lilypond. I found it in output-svg.scm defined as follow :
(define fancy-format format)
So it is exactly the same !
What the advantage to use fancy-format vs format ?

Gilles








_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to