David Kastrup <d...@gnu.org> writes: > Pierre Perol-Schneider <pierre.schneider.pa...@gmail.com> writes: > >> Hi Frédéric, >> If you want to get a custom style, see Simon's here: >> http://lilypond.1069038.n5.nabble.com/Custom-accidental-styles-td190776.html#a190788 >> >> Otherwise you could do: >> >> \version "2.20.0" >> >> \fixed c' { >> \accidentalStyle dodecaphonic >> \key d\major >> c' d' e' f' >> cis' dis' eis' fis' >> ces' des' es' fes' >> } >> >> \layout { >> \context { >> \Voice >> \override Accidental.stencil = >> #(lambda (grob) >> (let ((glyph (ly:grob-property grob 'glyph-name))) >> (cond >> ((equal? glyph "accidentals.natural") >> (ly:stencil? #f)) >> (else (ly:accidental-interface::print grob))))) >> } >> } > > Seems easier to just do > > \key d\major > \set Staff.keyAlterations = #'() > \accidentalStyle dodecaphonic > > Namely lie about the printed key signature.
Obviously not \accidentalStyle dodecaphonic though. \accidentalStyle forget I think? -- David Kastrup