On Tue, 6 Oct 2026, Gabriel Ellsworth wrote:
> On Mon, 5 Oct 2026, Gabriel Ellsworth wrote:
>
>> I engrave Anglican chant and plainchant, and I keep running into the same
>> spacing problem with reciting notes. I attach a small example (.ly and
>> PDF).
>>
> Thank you, Kieren, Yoshi, David, and Lukas!
>
> Lukas shared a pair of functions that appear to be a very good solution
> for my use cases in plainchant and SATB Anglican chant:
>
> pack = {
> \override Score.SpacingSpanner.packed-spacing = ##t
> \newSpacingSection
> }
>
> unpack = {
> \override Score.SpacingSpanner.packed-spacing = ##f
> \newSpacingSection
> }
>
> Please see attached an updated version of the same music example, now
> incorporating the \pack and \unpack commands.
>
> I think I will probably go with this approach.
>
> The only slight difficulty that I am having so far is with single-staff
> polyphony — in this case, sopranos and altos singing the chant in unison.
>
> See scores (7) and (8) in the attached files. Something is causing
> problems in the spacing of lyrics, even when \omit Stem is applied. The
> problem in the output exists only because sopranos and altos are singing
> *in unison.* When I change the altos’ pitches to be different from those of
> the sopranos, the problem goes away.
>
> What is the root cause of this problem, and how can we fix it?
>
Lukas and I seem to have found a good solution for the unison cases!
unisonHead = {
\once \override NoteHead.X-extent = #'(0 . 1e-300)
% an extremely small, but greater than zero, value
}
Updated .ly and PDF files are attached.
This method is working very well.
The only downside is that if the unison occurs right before a line break in
an extremely narrow/tight score, the note head to which we apply the
\unisonHead command can spill off the staff, as shown here:
[image: image.png]
But in real engraving work, such cases would be very rare. Plus, the issue
would be very easy to spot when proofreading draft engravings.
I’ll plan to turn this approach into a snippet for the Wiki, unless anyone
has other proposed solutions.
Reciting note first lyric - MWE - v11.pdf
Description: Adobe PDF document
Reciting note first lyric - MWE - v11.ly
Description: Binary data
