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 - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user