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: Pierre Perol-Schneider
Subject: Re: show key signature but also alterations
Date: Thu, 21 May 2020 13:02:24 +0200

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)))))
  }
}

HTH, Cheers,
Pierre

Le jeu. 21 mai 2020 à 11:06, Frédéric <address@hidden> a écrit :
Hi David,

> \fixed c'
> { \key d\major \accidentalStyle dodecaphonic
>   c' d' e' f'
>   cis' dis' eis' fis'
>   ces' des' es' fes'
> }


I tested that one already but I do not want the natural signs.
Thanks


reply via email to

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