lilypond-user
[Top][All Lists]
Advanced

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

Re: Wrong type argument


From: James
Subject: Re: Wrong type argument
Date: Tue, 02 Sep 2014 10:47:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Ming,

Can you 'somehow' remove the solfege engraver for your example (keep the includes but just remove for the sake of testing) the references to it. I think the problem is in this 'Scheme' syntax.

If we can narrow it down to just that engraver then we stand a better chance of working out the problem.

I know that might not help you in the short term.

Jameds


On 02/09/14 00:59, MING TSANG wrote:
James:
Thank you for answering.
Now I reduce the file and copy & paste the two includes inline. The .ly file compiles with error.
The same file run ok in v2.19.12
Emmanuel,
Ming

Starting lilypond-windows.exe 2.19.13 [joyful-test.ly]...
Processing `C:/Users/Tsang/Dropbox/Lyndon/HYMN/CP_002/joyful-test.ly'
Parsing...
Interpreting music...
Interpreting music...
Interpreting music...C:/Users/Tsang/Dropbox/Lyndon/HYMN/CP_002/joyful-test.ly:37:28: In procedure ly:pitch-notename in _expression_ (ly:pitch-notename tonic-pitch):
C:/Users/Tsang/Dropbox/Lyndon/HYMN/CP_002/joyful-test.ly:37:28: Wrong type argument in position 1 (expecting Pitch): ()
Exited with return code 1.

Starting lilypond-windows.exe 2.19.12 [joyful-test.ly]...
Processing `C:/Users/Tsang/Dropbox/Lyndon/HYMN/CP_002/joyful-test.ly'
Parsing...
Interpreting music...
Interpreting music...
Interpreting music...
Preprocessing graphical objects...
Interpreting music...
MIDI output to `joyful-test.mid'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `joyful-test.ps'...
Converting to `./joyful-test.pdf'...
Success: compilation successfully completed
Completed successfully in 4.4".


On Monday, September 1, 2014 12:14:41 PM, James <address@hidden> wrote:


On 01/09/14 15:20, Phil Holmes wrote:
With your file I get
 
joyful-joyful-we-adore-thee.ly:23:10: error: cannot find file: `include_solfege-engraver.ly'
joyful-joyful-we-adore-thee.ly:107:10: error: cannot find file: `include_extract-music.ly'
error: unknown escaped string: `\ePU'
 
This is running 2.19.11
 
Might I suggest that following the advice in http://lilypond.org/website/tiny-examples.html might enable you to find your own problem, and would certainly help someone else.

--
Phil Holmes
 
 
----- Original Message -----
From: MING TSANG
Sent: Monday, September 01, 2014 2:58 PM
Subject: Wrong type argument

I uninstall v2.19.12 and install v19.13 and run a lily file and I got the following error.  I then run convert-ly; re-run and got the same error.
The .ly file run without error in v2.19.12.
Emmanuel,
Ming.

Starting lilypond-windows.exe 2.19.13 [joyful-joyful-we-adore-thee.ly]...
Processing `C:/Users/Tsang/Dropbox/Lyndon/HYMN/CP_002/joyful-joyful-we-adore-thee.ly'
Parsing...
Interpreting music...
Interpreting music...
Interpreting music...
Interpreting music...
Interpreting music...C:/Users/Tsang/Dropbox/Lyndon/HYMN/CP_002/joyful-joyful-we-adore-thee.ly:37:28: In procedure ly:pitch-notename in _expression_ (ly:pitch-notename tonic-pitch):
C:/Users/Tsang/Dropbox/Lyndon/HYMN/CP_002/joyful-joyful-we-adore-thee.ly:37:28: Wrong type argument in position 1 (expecting Pitch): ()
Exited with return code 1.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

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





reply via email to

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