[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom clef horizontal adjustment.
From: |
David Kastrup |
Subject: |
Re: Custom clef horizontal adjustment. |
Date: |
Tue, 03 Jul 2018 07:18:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
dfro <address@hidden> writes:
> In the code snippet below, the custom glyph sometimes collides with
> the notes before it, and sometimes does not. Also, I cannot control
> the distance from notes immediately after the custom glyph, as I can
> with the standard "alto" glyph.
>
> I have tried to experiment and to understand the various Clef object
> properties, but I cannot figure it out. I am sure there is something
> basic about grob behavior that I don't understand, yet.
>
> %CODE START
> %%%%% Valentin Villanave's macro for the French-style C clef %%%%%%%
>
> altoClef = \markup \postscript #"
> gsave newpath
> 0.004 0.004 scale
> -200 0 translate
[...]
> fill grestore"
Uh, that's opaque to LilyPond. It has neither bounding box nor
outline. Try rewriting in terms of the \path command.
--
David Kastrup