Automatically adjusting lyric placement for natural note spacing: Difference between revisions

Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
This snippet gets rid of uglinesses in note spacing caused by lyrics. By default, LilyPond always puts a lyric word exactly centered under the note it attaches to. When there is a long lyric word, LilyPond reserves space between notes so that there will be no collisions in the lyrics. However, this can lead to uneven note spacing. This snippet completely removes the presence of lyrics in note spacing so that it is natural according to the note lengths, and uses a spacing algorithm that shifts lyrics automatically in order to avoid collisions.
This snippet gets rid of uglinesses in note spacing caused by lyrics. By default, LilyPond always puts a lyric word exactly centered under the note it attaches to. When there is a long lyric word, LilyPond reserves space between notes so that there will be no collisions in the lyrics. However, this can lead to uneven note spacing. This snippet completely removes the presence of lyrics in note spacing so that it is natural according to the note lengths, and uses a spacing algorithm that shifts lyrics automatically in order to avoid collisions.


<lilypond version="2.24.0" full>
<lilypond version="2.24" full>
% Snippet author: Jean Abou Samra <jean@abou-samra.fr>
% Snippet author: Jean Abou Samra <jean@abou-samra.fr>
% Original thread: https://lists.gnu.org/archive/html/lilypond-user/2022-11/msg00087.html
% Original thread: https://lists.gnu.org/archive/html/lilypond-user/2022-11/msg00087.html