Interesting ! One thing I see: It is *not a question of sharps or flats*. It is the question of sharps of flats beeing added or suppressed.
With Staff.explicitKeySignatureVisibility = #begin-of-line-visible The new Key signature is not printed at the end of the line, But a KeySignature with naturals is added when flats or sharps are suppressed in the next key. In your example, the number of flats increases, the the number of sharps decreases (so there are no key signatures at the end) but then, you suppress all the sharps and have flats in decreasing number. If you reverse the order of your sequences, you will see it. No idea how these naturals can be suppressed. Maybe another command... Le 12.03.21 à 16:11, Anthony Rushforth a écrit :
Hello I'm trying to get rid of key modifiers at end of lines. I found this : \set Staff.explicitClefVisibility = #end-of-line-invisible which works well when flats are added, but not when sharps are added I don't find the answer in the documentation here is the ly an pdf result you can see the problem measure 7, where the sharps begin... Anthony
-- Silvain Dupertuis Route de Lausanne 335 1293 Bellevue (Switzerland) tél. +41-(0)22-774.20.67 portable +41-(0)79-604.87.52 web: silvain-dupertuis.org <http://perso.silvain-dupertuis.org>
