Op zondag 26 september 2010 schreef Marc:
is it possible to create a callback with an additional argument?
I tried
#(define-public (my-callback string grob)
...
..
)
and wanted to call it by
\override Notehead #'stencil = #my-callback #'foo'
but lilypond complains.
You can make a function that is given the 'foo' argument and returns the
callback function that expects a grob argument.
like
#(define-public (make-callback string)
...
...(lambda (grob) ...)
)
\override Notehead #'stencil = #(make-callback "foo")