lilypond-user
[Top][All Lists]
Advanced

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

Re: Reducing the space in front of notes with accidentals


From: tran li
Subject: Re: Reducing the space in front of notes with accidentals
Date: Mon, 9 Dec 2024 17:06:59 +0800
User-agent: Mozilla Thunderbird

I've tried to revert the font to default, and the problem still occurs, so I think this is not a font-specific problem, it's something related to LilyPond's spacing logic.

Setting `Accidental.extra-spacing-width` property with a pair of value works, but I am quite confused with what the first and second value really mean in this pair. I've referred to the internals reference, but the actual result from testing seems to contradict with my understanding of the reference manual's description. It turns out that setting the first value positive or the second value negative, both ways reduces the space in front. So what differentiates these two values?

Also I would like to know, according to LilyPond's spacing logic is there really a way to precisely set the minimum space between accidentals and the previous note? Although adjusting `Accidental.extra-spacing-width` works fine, this method does not lie on the "minimum space" logic, so I might need to adjust this property multiple times while engraving. The "minimum space between accidentals and previous note" logic makes more sense semantically, and could potentially save a lot of trouble adjusting a property multiple times in my engraving.

This is the adjusted effect of my snippet:

On 2024/12/9 16:28, Werner LEMBERG wrote:

      
The following image is an example of the space imbalance caused by
accidentals.
You are not using the standard LilyPond music font.  Do you get
imbalanced accidentals with Emmentaler, too?  Otherwise it might be
that the font isn't set up properly for use with LilyPond.

I hope to reduce the space in front of notes with accidentals, so
that accidentals can go as close as to touch the previous note. So
what property of what grob shall I modify in this case?
Maybe the `extra-spacing-width` property of the `Accidental` grob
helps.


    Werner

reply via email to

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