Am 23.04.2017 um 21:43 schrieb Noeck:
Hi Simon,

so far I used quite a few self-alignment tweaks (with a short-cut
command). Your function looks helpful. Could you explain a bit what it
does. IIUC the extreme cases are "centered" if there is only few space
and "almost left aligned" if there is a lot of space and in between you
interpolate smoothly.

But what how is the space determined? It does not use the durations,
does it? Is it about the available space or the with of a syllable or both?

Actually the function is very naive. It exclusively looks at the width of the syllable. If that width is 3 (staff-spaces) or less, self-alignment-X is set to 0, if it is 11 or more, self-alignment-X is -0.8. Between that, I interpolate smoothly with a ridiculous amount of effort that I only made for fun :-) (i.e. the kind of fun that I have recalling/finding out again how to solve a quadratic equation and implementing that in Scheme)
For everything else, an engraver would be needed.

Best, Simon

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

Reply via email to