bug-lilypond
[Top][All Lists]
Advanced

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

error when making a connected path with make-connected-path-stencil


From: Paul Morris
Subject: error when making a connected path with make-connected-path-stencil
Date: Sun, 20 Oct 2013 10:43:19 -0400

When trying to use the function "make-connected-path-stencil" to create a 
connected path, setting "connect" to true (#t) leads to this error in the log:

Wrong type argument in position 1 (expecting empty list): closepath

-Paul

%%% EXAMPLE %%%
\version "2.17.28"

\markup \stencil
#(make-connected-path-stencil
'((0 2) (2 2))
0.1
1
1
#t ;; <-- error if "connect" is set to #t (works fine if set to #f)
#f)

%%% ERROR LOG %%%

Parsing...
[...] error: GUILE signaled an error for the expression beginning here
#
(make-connected-path-stencil
[...] error: wrong type for argument 1. Expecting stencil, found #<unspecified>
#(make-connected-path-stencil
Wrong type argument in position 1 (expecting empty list): closepath
[...] In procedure reverse! in expression (ly:parse-file file-name):
[...] Wrong type argument in position 1: (#<unspecified> . #f)


%%%%%%% 

In case it is useful, here's documentation for this function from where it is 
defined in the stencil.scm file, around line 432:

(define-public (make-connected-path-stencil pointlist thickness 
                                            x-scale y-scale connect fill) 
  "Make a connected path described by the list @var{pointlist}, with 
thickness @var{thickness}, and scaled by @var{x-scale} in the X direction 
and @var{y-scale} in the Y direction.  @var{connect} and @var{fill} are 
boolean arguments that specify if the path should be connected or filled, 
respectively." 


reply via email to

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