Mark Polesky wrote:
How do I properly remove one accidental from a chord? I found I
was able to replace the stencil with an empty-stencil, but there's
still a space left where it would have been.
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.
Here's an example of what I was doing. Any help is appreciated.
- Mark
#(define (remove-middle-line-accidental grob)
;; Accidental stencil callback
(if (eq? (ly:grob-property (ly:grob-property grob 'cause)
'staff-position) 0)
empty-stencil
(ly:accidental-interface::print grob)))
\relative {
\once \override Accidental #'stencil =
#remove-middle-line-accidental
<ef gf bf df>
}
The crude method would be to put the wrong pitch (i.e. use "b"
instead of "bf"), which would take care of the spacing problems,
but of course if you need correct MIDI output then this would jack
it up. I thought there might be a way to use the \tweak command
for this, but after 15 minutes I can't find it.
Jon
--
Jonathan Kulp
http://www.jonathankulp.com
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user