bug-lilypond
[Top][All Lists]
Advanced

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

Re: pitchedTrill bug?


From: Aaron Hill
Subject: Re: pitchedTrill bug?
Date: Tue, 18 Jun 2019 12:48:52 -0700
User-agent: Roundcube Webmail/1.3.8

On 2019-06-18 11:02 am, Jean-Charles Malahieude wrote:
Hi all,

Is there any reason why I get an natural when there is none to be ?

{
  \key c \major
  \pitchedTrill
  c''2\startTrillSpan d'' c''\stopTrillSpan
  \pitchedTrill
  c''2\startTrillSpan b' c''\stopTrillSpan
}

This is hard-coded logic [1] that naturals will always be printed for TrillPitchAccidental grobs.

[1]: https://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=lily/pitched-trill-engraver.cc;h=325bf5a76bde8baa279fe19cf045baae9647e48d;hb=HEAD#l123

As a workaround, you could do something like this:

%%%%
\version "2.19.82"

hideUnforcedNaturals = #(lambda (grob)
  (and (eqv? (ly:grob-property grob 'alteration) 0)
       (let ((cause (ly:grob-property grob 'cause)))
            (not (ly:event-property cause 'force-accidental #f)))
    (set! (ly:grob-property grob 'stencil) #f)))

\fixed c'' {
\override TrillPitchAccidental.before-line-breaking = #hideUnforcedNaturals
  \pitchedTrill cis2\startTrillSpan dis cis\stopTrillSpan
  \pitchedTrill cis2\startTrillSpan d cis\stopTrillSpan
  \pitchedTrill cis2\startTrillSpan d! cis\stopTrillSpan
}
%%%%


-- Aaron Hill



reply via email to

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