Le 28/01/2022 à 08:27, Jefferson Skinny a écrit :
Hi,
I noticed that grace notes do not follow the same as normal notes.
Normally, notes which are placed beyond ledger lines will have longer
stems to avoid clashing with them. Certainly, it is possible to tweak
the stems individually, but is it possible to automate this for grace
notes?
This is intentional. You can switch it off using
\version "2.22.1"
\new Voice {
$(add-grace-property 'Voice 'Stem 'no-stem-extend '())
\stemUp \grace g,8-. g,4
}
Note that creating the voice explicitly with
\new Voice is important here. Please see
https://lilypond.org/doc/v2.22/Documentation/notation/special-rhythmic-concerns#grace-notes
Same goes with articulation. Staccato dots and wedges usually don't
leave the staff when there are ledger lines. For example, a better
placement for the staccato dot in
{ \stemDown g-. }
would be
{ \stemDown g\tweak Y-offset -1.5-. }
Perhaps, but this becomes hardly feasible when you
consider
\version "2.22.1"
<<
{ e' }
\\
{ \stemDown g,\tweak Y-offset -1.5-. }
>>
The script position should normally be below the
note, not above it. That happens automatically
if you use \voiceTwo rather than the very specific
\stemDown.
Slurs also should not do this (I'd say a good limit is in between
the final staff line and the first ledger line).
Is it also possible to automate this, so that I do not need to tweak
it every time it happens?
Could you give an example where this happens?
Best,
Jean