|
From: | Steve Noland |
Subject: | Problem with LilyJAZZ.ily |
Date: | Mon, 7 Oct 2013 23:24:27 +0000 |
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]… |
[Prev in Thread] | Current Thread | [Next in Thread] |
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))