lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

args in Scheme


From: 胡海鹏 - Hu Haipeng
Subject: args in Scheme
Date: Wed, 16 Feb 2011 10:49:03 +0800 (CST)

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 { }
  }


 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]