From: Urs Liska <li...@openlilylib.org>
Date: Monday, February 25, 2019 at 4:03 AM
To: lilypond-user <lilypond-user@gnu.org>
Subject: Slur over a single note


Hi,

I'm in need of an idea how to approach this: I need to print a slur over a 
single note.

More concretely there already is a markup with a certain width above the note 
(see attached image), and I need to print a slur over that markup (see second 
attached image).

It should be possible (I think) to hook into the stencil callback, take the 
markup stencil and produce a new slur stencil from scratch. But until now I 
have only taken an existing slur stencil and worked with that, so I'm at a loss 
as to how I can add a new slur stencil to the existing one.

I've come to the point where I can access the markup as a stencil in the 
"stencil" override. From here I want to add an additional slur stencil, aligned 
to that markup stencil and add it to the whole result.

You might work with a bezier-sandwich-stencil, which is what both slurs and 
ties are constructed from.

See scm/stencil.scm

HTH,




_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to