lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strict notespacing with lyrics


From: Simon Albrecht
Subject: Re: strict notespacing with lyrics
Date: Sun, 23 Apr 2017 22:53:50 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]