lilypond-user
[Top][All Lists]
Advanced

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

Re: bezier-sandwich stencil


From: Han-Wen Nienhuys
Subject: Re: bezier-sandwich stencil
Date: Fri, 09 Dec 2005 19:55:28 +0100
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Andrzej Kopec wrote:
I had been looking at sources before asking this question, but this hadn't 
provided any
solution. Also Lookup::bezier_sandwich didn't help.
I get this (or similar) from lily:
...
Layout output to `scm-markup-stencil-01.ps'...
/usr/local/share/lilypond/2.6.4/ly/init.ly:36:1: error: GUILE signaled an error 
for the expression beginning here
#
 (if (pair? toplevel-scores)Wrong type to apply: (0 . 2)

/usr/local/share/lilypond/2.6.4/ly/init.ly:36:5: error: syntax error, 
unexpected '(', expecting '='
#(if (pair? toplevel-scores)
error: failed files: 
"/home/snopek/moje_pliki/lilypond/test/scm-markup-stencil-01.ly"

LilyPond exited abnormally with code 1 at Thu Dec  8 00:34:56

Regardless of the fact I use an 8-element list or a list of 4 pairs, or a list 
of 8 pairs,
or anything else in list, including even strings...

So: I would REALLY appreciate very much any EXAMPLE of using such statement.
(sb. said "one picture says more than a thousand words", i'd say "one 
example...")

It looks as if you're making mistakes with Scheme quoting. You should use something like

  (list 'bezier-sandwich (list 'quote '(0 . 2) '(1 . 4) ... ))

or

  '(bezier-sandwhich (quote ((0 . 2) (1 . 4) ... )))


I guess.

You need an extra quote because the expression of a stencil is evaluated another time in the back-end.


--
 Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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