lilypond-user
[Top][All Lists]
Advanced

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

Re: Problem with LilyJAZZ.ily


From: Thomas Morley
Subject: Re: Problem with LilyJAZZ.ily
Date: Tue, 8 Oct 2013 01:41:34 +0200

2013/10/8 Steve Noland <address@hidden>:
> Dear all,
>
> On a Mac, when trying to compile the jazz-test-3.ly file, I get the
> following error from Lilypond re: the LilyJAZZ.ily file:
>
> Starting lilypond 2.17.27 [jazz-test-3.ly]…
> Processing `/Users/snoland/Downloads/LilyJAZZ/jazz-test-3.ly’
> Parsing…
> Interpreting music…
> Preprocessing graphical
> objects…/Users/snoland/Downloads/LilyJAZZ/LilyJAZZ.ily:151:16: In expression
> (key-signature-interface::alteration-position (car alt) (cdr alt) …):
> /Users/snoland/Downloads/LilyJAZZ/LilyJAZZ.ily:151:16: Unbound variable:
> key-signature-interface::alteration-position
> Exited with return code 1.
>
> Here is a snippet from the LilyJAZZ.ily that contains the above line:
>
> %***********************************************************************
> % KEY SIGNATURES
> %***********************************************************************
>
> #(define (jazz-keysig grob)
> “stencil: jazz key signature (including cancellation)”
> (let* ((altlist (ly:grob-property grob ‘alteration-alist))
> (c0pos (ly:grob-property grob ‘c0-position))
> (keysig-stencil ‘()))
> (for-each (lambda (alt)
> (let* ((alteration (if (grob::has-interface grob
> ‘key-cancellation-interface) 0 (cdr alt)))
> (glyphname (assoc-get alteration jazz-alteration-glyph-name-alist “”))
> (padding (cond
> ((< alteration 0) 0.25) ; any kind of flat
> ((= alteration 0) 0.05) ; natural
> ((< alteration 1) 0.1) ; sharp (less than double sharp)
> (else -0.4))) ; double sharp
> (ypos (key-signature-interface::alteration-position (car alt) (cdr alt)
> c0pos))
> (acc-stencil (grob-interpret-markup grob (markup #:raise (/ ypos 2)
> #:jazzglyph glyphname))))
> (set! keysig-stencil (ly:stencil-combine-at-edge acc-stencil X RIGHT
> keysig-stencil padding)))) altlist)
> keysig-stencil))
>
>
> This error appears both when using Frescobaldi and doing a stand-alone
> compile using Lilypond.  I have a report from a PC user who has exactly the
> same issue (see "LilyPond and LilyJAZZ thread on lilypondblog.org).
>
> Thanks,
>
> Steve
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

Try replacing #(define (jazz-keysig grob) ...) with Keith's suggestion:
http://lilypond.1069038.n5.nabble.com/Pseudo-handwritten-font-tt142117.html#a147230

HTH,
  Harm



reply via email to

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