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") best regards, Wilbert Berendsen -- Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/ Nederlands LilyPond forum: http://www.lilypondforum.nl/ _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user