args in Scheme
Hello, Three years ago, when I defined a function, someone told me that in Lily Scheme can only take up to 3 arguments. I don't know whether this limitation is eliminated now, so could you tell me whether the following prints correctly? Haipeng \version 2.13.50 triTempo = #(define-music-function (parser location prependText notevaluei notevalueii appendText) (string? string? string? string?) #{ \tempo \markup { \line { $prependText ( \fontsize #-2 \general-align #Y #DOWN \note #$notevaluei #1 = \general-align #Y #DOWN \note #$notevalueii #1 $appendText ) } } #}) \score { \new Staff { \time 4/4 \triTempo Allegro 2 4 = 60 c'4 c' c' c' } \layout { } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: args in Scheme
On Wed, Feb 16, 2011 at 10:49:03AM +0800, 胡海鹏 - Hu Haipeng wrote: I don't know whether this limitation is eliminated now, so could you tell me whether the following prints correctly? I believe it is correct. With 2.13.47, I see: Allegro ( [half note symbol] = [quarter note symbol] = 60 ) Cheers, - Graham ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user