|
From: | Han-Wen Nienhuys |
Subject: | Re: \cueDuring problem |
Date: | Thu, 06 Apr 2006 11:32:42 +0200 |
User-agent: | Thunderbird 1.5 (X11/20060313) |
Werner LEMBERG wrote:
transposedCueDuring = #(define-music-function (parser location what dir pitch-note main-music) (string? ly:dir? ly:music? ly:music?)
We should probably hardcode support for having a single-note music argument as well.
'origin location)) Unfortunately, this doesn't work, because there isn't a proper signature for a music function with four or more user-supplied arguments -- this is a completely undocumented limitation! It took some time until I've found the corresponding code in lexer.ll and parser.yy.
Hi,I'm adding support for up to 4 SCM args, and cleaned up the code a bit. Can you redo the patch? The limitation is just laziness. We might want to write a code generator to just generate these signatures up to 10 arguments.
-- Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen LilyPond Software Design -- Code for Music Notation http://www.lilypond-design.com
[Prev in Thread] | Current Thread | [Next in Thread] |