lilypond-user
[Top][All Lists]
Advanced

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

Re: edition-engraver error


From: Stefano Troncaro
Subject: Re: edition-engraver error
Date: Mon, 26 Feb 2018 10:53:31 -0300

Hi Kieren, this has been fixed already! Just update the Edition Engraver :)

FYI the problem is here
((integer? m)(ly:make-moment m/4))

m/4 is interpreted as a variable name (that doesn't exist), thus the "unbound variable" error. I think the line was replaced by (/ m 4).

2018-02-26 9:57 GMT-03:00 kieren_macmillan kieren_macmillan <address@hidden>:
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


reply via email to

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