lilypond-user
[Top][All Lists]
Advanced

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

Re: Ignore key signature?


From: TaoCG
Subject: Re: Ignore key signature?
Date: Wed, 17 Sep 2014 11:05:02 -0700 (PDT)

You can also define your own accidental-style. The code below always prints
accidentals when a pitch has an alteration.
I suppose it will work the same for 2.19.

\version "2.18.2"

\relative {
    #(set-accidentals-properties #f
         `(Staff
           ,(lambda (c p bn mp)
                (if (= 0 (ly:pitch-alteration p))
                    '(#f . #f)
                    '(#f . #t))))
         '()
         'Staff)

    \omit Staff.KeySignature
    \key d \major
    c'4 d e fis f ges a! cis
}



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Ignore-key-signature-tp166525p166527.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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