bug-lilypond
[Top][All Lists]
Advanced

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

Re: Accidentals and Ledger Lines


From: Malte Meyn
Subject: Re: Accidentals and Ledger Lines
Date: Wed, 5 Sep 2018 14:44:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

[Forwarding to bug-lilypond]

Hi foxfanfare,

Am 05.09.18 um 11:07 schrieb foxfanfare:
As you can see, the ledger line of the note containing the accidental is
shortned as expected, but the other aren't and you can see here the natural
appears too close.

that’s true, neighbouring ledger lines should be shortened in some cases. LilyPond’s documentation advertises the ledger line shortening (http://lilypond.org/doc/v2.18/Documentation/essay/engraving-details#ledger-lines), IMHO that’s a good reason why it should really work ;)

I can fix this by moving the accidental with \once \override
Accidental.X-offset = #-1.25, see:

accidentals2.JPG
<http://lilypond.1069038.n5.nabble.com/file/t5604/accidentals2.JPG>

But this tweak has to be done every time... My question is: is it possible
to add more padding between ledger lines and accidentals? I tried many
combinations but nothing worked so far...

Of course you could use \override instead of \once \override but of course that’s not optimal, therefore I’m forwarding this to the bug list. The following code shows in which cases also a neighbouring ledger line should be shortened and where there are ledger lines that are shortened but shouldn’t be.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.19.82"
<<
  \new Staff \relative c''' {
    \set Score.extraNatural = ##f
    ceses feses % feses: no need for shortening
    ceseh feseh % feseh: no need for shortening
    ces fes     % fes:   no need for shortening
    ceh feh     % ok
    c! f!       % both: more shortening needed
    cih fih     % ok
    cis fis     % ok
    cisih fisih % ok
    cisis fisis % ok
  }
  \new Staff \relative {
    aeses eeses % ok
    aeseh eeseh % ok
    as es       % ok
    aeh eeh     % both:  more shortening needed
    a! e!       % a:     more shortening needed
    aih eih     % aih:   more shortening needed
    ais eis     % ais:   more shortening needed
    aisih eisih % aisih: more shortening needed
    aisis eisis % ok
  }
>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



reply via email to

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