[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix for bug #218 (center staccato over stem instead of noteh
From: |
Maximilian Albert |
Subject: |
Re: [PATCH] Fix for bug #218 (center staccato over stem instead of notehead) |
Date: |
Sun, 7 Dec 2008 20:34:06 +0100 |
Hi Neil,
thanks a lot for your further very helpful ideas. Attached is a patch
for a new approach which implements your suggestion to define a new
property. It's called 'shifted-towards-stem and can take any real
value, where 0.0 means to keep the default position (centered on the
note-head) and 1.0 means centered on the stem (intermediate values are
of course possible). I also added a check whether the grob in question
actually possesses a stem, so it works well for skips, too (perhaps
there is a more Lilypond-ish way of doing things but as far as I could
test, it works).
Since Reinhold said it would be best to make the shifting optional and
off by default, I didn't set any properties in script.scm. But the
shifting can of course be overridden in the .ly file itself (see
attached example). My only question is, how can I set the property for
individual script types instead of all scripts at once, i.e. what
would I need to write instead of
\override Script #'shifted-towards-stem = #'1.0
if I wanted to enable shifting only for staccato marks, say?
Max
P.S.: In case this gets approved in one form or the other, what would
be necessary to document it properly? Add a LSR example, a regression
test, something else? Anything I need to keep in mind when writing
these?
0001-New-grob-property-shifted-towards-stem-allows-scri.patch
Description: Text Data
shifted_scripts.ly
Description: Binary data
shifted_scripts.png
Description: PNG image
- Re: [PATCH] Fix for bug #218 (center staccato over stem instead of notehead), Maximilian Albert, 2008/12/02
- Re: [PATCH] Fix for bug #218 (center staccato over stem instead of notehead), Han-Wen Nienhuys, 2008/12/09
- Re: [PATCH] Fix for bug #218 (center staccato over stem instead of notehead), Maximilian Albert, 2008/12/12
- Re: [PATCH] Fix for bug #218 (center staccato over stem instead of notehead), Han-Wen Nienhuys, 2008/12/12
- Re: [PATCH] Fix for bug #218 (center staccato over stem instead of notehead), Maximilian Albert, 2008/12/16