|
From: | Johannes Roeßler |
Subject: | Re: Graphics |
Date: | Sat, 8 Apr 2023 10:58:32 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 |
now I managed to make my EPS accessable
in Lilypond, and I am able to use it as markup.
Now I want to use it to replace a clef. In the snippets there is a way, that creates an alternative stencil and then uses: \override Clef.stencil =
#(lambda (grob) (let* ((sz (ly:grob-property grob 'font-size 0)) (mlt (magstep sz)) (glyph (ly:grob-property grob 'glyph-name))) (cond ((equal? glyph "clefs.F") (ly:stencil-scale my-clef (* 1 mlt) (* 1 mlt))) ((equal? glyph "clefs.F_change") (ly:stencil-scale my-clef (* .8 mlt) (* .8 mlt))) (else (ly:clef::print grob))))) - but in this case I would need to
define the stencil. Is there a way to replace a clef glyph with an
EPS?
thx, Joei
|
[Prev in Thread] | Current Thread | [Next in Thread] |