lilypond-user
[Top][All Lists]
Advanced

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

Re: show key signature but also alterations


From: Timothy Lanfear
Subject: Re: show key signature but also alterations
Date: Sun, 24 May 2020 22:50:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 24/05/2020 20:35, Frédéric wrote:

Halas, my web server is under raspberry pi which has only lilypond
2.18.2. But 2.18.2 does not give a suitable output (too many natural
signs).
Try that:
\version "2.18.2"
{
   \override AccidentalCautionary.parenthesized = ##f
   \accidentalStyle teaching
   \key d \major
   d'4 fis' d' fis' d'4 fis' d' fis'
}
and you'll get a natural sign on second, third and fourth d. But it's
perfectly fine on 2.19.84.

Any possibility to install a more recent version of lilypond on
raspberry or to make it work on 2.18.2?


You could try the attached, which is the 2.20.0 source code for the teaching accidental style (+some helper functions) with one change to accommodate 2.18 syntax, i.e. the key signature is obtained from the localKeySignature context property instead of localAlterations. Thus the code does not work with Lilypond 2.20.0. Also note the override is no longer necessary.

--
Timothy Lanfear, Bristol, UK.

Attachment: teaching.ly
Description: Text Data


reply via email to

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