|
From: | James |
Subject: | Re: Wrong type argument |
Date: | Mon, 01 Sep 2014 17:14:41 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 |
On 01/09/14 15:20, Phil Holmes wrote:
Ming, Even if you remove the 'includes' lines you still have some variables referenced that are not in the email. Doing some very basic troubleshooting I also get test.ly:36:28: In procedure ly:pitch-notename in _expression_ (ly:pitch-notename tonic-pitch): test.ly:36:28: Wrong type argument in position 1 (expecting Pitch): () and this 'test.ly:36:28' refers to a line in my test.ly file with your code cut and paste. and this line is included in the solfege-engraver function. #(define (solfege-engraver lst dir) (make-engraver (acknowledgers ((note-head-interface engraver grob source) (let* ( (context (ly:translator-context engraver)) (tonic-pitch (ly:context-property context 'tonic)) (tonic-index (ly:pitch-notename tonic-pitch)) <------- HERE IS THE LINE BEING REFERENCED!!!!!!! (event (ly:grob-property grob 'cause)) (event-copy (ly:event-deep-copy event)) (grob-pitch (ly:event-property event 'pitch)) (grob-index (ly:pitch-notename grob-pitch)) (delta (modulo (- grob-index tonic-index) 7)) (name (list-ref lst delta)) (newgrob (ly:engraver-make-grob engraver 'TextScript event-copy))) ;; clear 'tweaks for newgrob ;; (ly:event-set-property! event-copy 'tweaks '()) (if (string= name "Hb") (set! name "B")) ;; Give newgrob 'outside-staff-priority depending on ;; grob 'staff-position (set! (ly:grob-property newgrob 'outside-staff-priority) (+ (ly:grob-property newgrob 'outside-staff-priority) (* dir (ly:grob-property grob 'staff-position)))) (set! (ly:grob-property newgrob 'text) name) (set! (ly:grob-property newgrob 'direction) dir) ))))) but unless you can simplify this example, I am not sure if anyone can help (they might be able to guess). Now I also rememeber a change to this solfege engraver being discussed in June http://lists.gnu.org/archive/html/lilypond-user/2014-06/msg00640.html But I don't use this so I don't know if this is the same as the one you are using or if you have some other issue. Simplifying your example would help. James |
[Prev in Thread] | Current Thread | [Next in Thread] |