lilypond-user
[Top][All Lists]
Advanced

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

How to pass a fraction as a parameter for a Scheme function


From: Paolo Prete
Subject: How to pass a fraction as a parameter for a Scheme function
Date: Tue, 9 Jun 2020 21:43:53 +0200

Hello,

I don't understand how to use a fraction as a parameter for a scheme function. More specifically, this gives me an error:

%%%%%%%%%%%%

proportionalNotationDur = #(define-music-function (parser location frac) (scheme?)                          #{ \set Score.proportionalNotationDuration = #(ly:make-moment frac) #})
{
  \proportionalNotationDur 1/16 
  c' c' c' c'
}

%%%%%%%%%%%%

How can I fix it? 
Thanks!

reply via email to

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