Hey all,
After thinking about it a bit, it seems to me that the current
(*wicked awesome*, BTW) skyline coding could come to the rescue
here... =)
IMO, the ultimate algorithm for a piano-with-centered-dynamics
situation might be as follows:
1. At any given point requiring a dynamic/hairpin, the grob-box
containing the dynamic/hairpin is inserted between the skylines of
the two surrounding Staff contexts.
2a. If this insertion can be done without the dynamic/hairpin box
touching either skyline, the two Staff contexts remain unaffected.
2b. If the dynamic/hairpin grob-box touches either skyline, the lower
Staff context is pushed down until the grob-box no longer (or just
barely) touches the skylines.
[In other words, this context would be "super-skylined" or "flatline-
able", with a minimum height of 0 where a Staff context has a minimum
height of 4.]
3a. The dynamic/hairpin grob-box #'padding would be user-settable.
3b. There would also be a setting (default = ##f) which would force
all dynamic grob-boxes within a single system to be aligned on the
same vertical axis.
How difficult (read: expen$ive) would it be to add such a feature?
Thanks,
Kieren.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user