]> git.donarmstrong.com Git - lilypond.git/commit - scm/music-functions.scm
Issue 3563: Allow define-*-function to accept currying definitions
authorDavid Kastrup <dak@gnu.org>
Wed, 18 Sep 2013 18:57:59 +0000 (20:57 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 24 Sep 2013 07:00:42 +0000 (09:00 +0200)
commite884e297a5cd6c4c233846be46b4df5ffa3b61eb
tree2e70043661c2d92b86641673daae814b87ff5978
parent31cae8bae49aedd898210420cb5ccb10f34213f3
Issue 3563: Allow define-*-function to accept currying definitions

This is actually only useful for define-scheme-function since the
purpose of a currying definition is to return a function rather than a
music expression.  A typical usage case would be a function creating
an engraver closure:

dia-engraver =
   (ly:pitch? ly:pitch?)
     (let ((store '()) (cause #f))
       (make-engraver

[...]

   \new Voice \with { \consists \dia-engraver c' g'' }

[...]
scm/music-functions.scm