|
From: | Stefano Troncaro |
Subject: | Re: edition-engraver error |
Date: | Mon, 26 Feb 2018 10:53:31 -0300 |
((integer? m)(ly:make-moment m/4))
Hello all,
Trying to use the EE. Running into the following fatal error:
While evaluating arguments to ly:make-moment in _expression_ (ly:make-moment m/4):
/Volumes/KMac
Seagate/scores/_include/openlilylib/edition-engraver/ engine.scm:68:17: Unbound
variable: m/4
Exited with return code 1.
I've never run into this error before. (But then again, my whole setup is
changed here: I'm working remotely, and am borrowing a friend's computer.)
That part of the code doesn't LOOK problematic to me:
(define (short-mom? v)(or (integer? v)(fraction? v)(rational? v)(ly:moment? v)))
; convert to a moment
(define (short-mom->moment m)
(cond
((integer? m)(ly:make-moment m/4))
((fraction? m)(ly:make-moment (car m) (cdr m)))
((rational? m)(ly:make-moment m))
((ly:moment? m) m)
(else (ly:make-moment 0/4))))
; predicate for a pair of measure and short-mom
(define (mom-pair? v)
(and (or (pair? v)
(and (list? v)(= 2 (length v))))
(integer? (car v))
(short-mom? (cadr v))))
But then again, my Scheme-fu is zero.
Any help would be appreciated.
Thanks!
Kieren.
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |