Creating a callback with an additional argument?

2010-09-26 Thread Marc Hohl
Hello list, 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. Is this possible at all or do I have to use another

Re: Creating a callback with an additional argument?

2010-09-26 Thread Wilbert Berendsen
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

Re: Creating a callback with an additional argument?

2010-09-26 Thread Reinhold Kainhofer
Am Sonntag, 26. September 2010, um 20:19:28 schrieb Marc Hohl: is it possible to create a callback with an additional argument? Yes, that's possible. I'm using it for example for the glyph-flag flag style. I tried #(define-public (my-callback string grob) ... .. ) #(define-public

Re: Creating a callback with an additional argument?

2010-09-26 Thread Marc Hohl
Wilbert Berendsen schrieb: 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

Re: Creating a callback with an additional argument?

2010-09-26 Thread Marc Hohl
Reinhold Kainhofer schrieb: Am Sonntag, 26. September 2010, um 20:19:28 schrieb Marc Hohl: is it possible to create a callback with an additional argument? Yes, that's possible. I'm using it for example for the glyph-flag flag style. I tried #(define-public (my-callback string