lilypond-user
[Top][All Lists]
Advanced

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

Re: remove accidental from a chord?


From: Neil Puttock
Subject: Re: remove accidental from a chord?
Date: Mon, 15 Jun 2009 22:13:36 +0100

2009/6/15 Mark Polesky <address@hidden>:

> I see that accidental-placement-interface has an internal property
> called accidental-grobs, but I don't know how to access it, or if
> I could even change it from scheme if I wanted to.

Use ly:grob-object.

\relative c' {
  \override Staff.AccidentalPlacement #'positioning-done =
    #(lambda (grob)
      (ly:grob-set-property! grob 'positioning-done #t)
      (let* ((accs (ly:grob-object grob 'accidental-grobs))
             (b-flat (car (assoc-get 6 accs))))
        (ly:grob-suicide! b-flat)
        (ly:accidental-placement::calc-positioning-done grob)))
    <ef gf bf df>4
}

Though this gets rid of the extra space, it has an unfortunate side
effect of changing the accidental positioning.

Regards,
Neil

Attachment: b-flat-gone.png
Description: PNG image


reply via email to

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