lilypond-user
[Top][All Lists]
Advanced

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

Re: Postscript trick


From: Jan Nieuwenhuizen
Subject: Re: Postscript trick
Date: Sat, 15 May 2004 15:51:03 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Scott Webber writes:

> I'm trying to use lisp or schema or whatever to add postscript to a note,
> but I don't really understand the syntax exactly.

Try something like:

{ c c c c-"\\embeddedps{1 1 moveto 2 2 rlineto stroke}" }

I'm assuming you use 2.3 CVS, because otherwise you won't be able to
use ly snippets inside scheme.  However

% can't get this to work
#(define (slash x)
   ;; #{ \notes { $x-"\\embeddedps{1 1 moveto 2 2 rlineto stroke}" } #}
   #{ \notes { $x -"\\embeddedps{1 1 moveto 2 2 rlineto stroke}" } #}
)

% { c c c c #(slash 'c) }

> Now I realize that that isn't correct, but has anyone done anything like
> this before?

Have you looked the \embeddedps example in the tips and tricks?


-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

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