lilypond-user
[Top][All Lists]
Advanced

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

ly:make-stencil arguments question


From: Urs Liska
Subject: ly:make-stencil arguments question
Date: Wed, 18 Jan 2017 11:13:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0

Hi all,

I'm struggling to parametrize the creation of a stencil, and I must admit I'm totally lost with the issue of multiple level quoting/quasiquoting/unquoting.

See attached file which is derived from http://lsr.di.unimi.it/LSR/Snippet?id=623.

It uses ly:make-stencil to create a stencil from a path. What I need is a way to replace the path definition starting with

`(rmoveto

with a function call so that I can somehow write

#(ly:make-stencil
`(path 0.2 <call-to-function>)
But however I change where and how often to use (quasi)quoting I always fail to get proper results.
Displaying this (working) path _expression_ returns

(path 0.2 (quasiquote (rmoveto 0 0 rcurveto 0 0.75 1 0.75 1 0 rcurveto 0 -0.75 -1 -0.75 -1 0 rcurveto -1 0 -1 1.5 -0.5 1.5 rmoveto 0.5 -1.5 rcurveto -1 0 -1 -1.5 -0.5 -1.5 rmoveto 0.5 1.5 rmoveto 1 0 rcurveto 2.5 0 2.5 4 4 4 rmoveto -4 -4 rcurveto 2.5 0 2.5 -4 4 -4)))


and I don't manage to recreate this due to the fact that there are two levels of quasiquoting.

Any enlightenment or (step towards) solution would be greatly appreciated.

Best
Urs
-- 
address@hidden
https://openlilylib.org
http://lilypondblog.org

Attachment: slur-stencils.ly
Description: Text Data


reply via email to

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