Valentin Villenave wrote:
2008/3/7, luis jure <[EMAIL PROTECTED]>:
the problem was the clash between a and a-flat in the two voices. by
default lilypond merges the two noteheads, even if they have different
accidentals. first i found about force-hshift, and managed to move the
aes to the right. but only the note, the accidental stayed in place.
the code compiles without complaints and i get what i wanted, but i'm
not sure if it is a good solution. is there a simpler|better|cleaner
way to move the note _and_ the accidental to avoid the clash between
a-natural and a-flat? some part of the documentation i missed?
Hi Luis,
unfortunately, you have stumbled upon a known limitation of LilyPond
(there are very few, and this is probably one of the most annoying):
http://code.google.com/p/lilypond/issues/detail?id=546
http://code.google.com/p/lilypond/issues/detail?id=547
Joe has recently made the situation a little less worse, but this is
still nowhere near perfect. So your workaround is the best solution so
far.
I made a quick attempt to find some alternatives to your very
clever solution. The best I could come up with is
\relative c'' {
\clef alto
<< { bes16*11/10[ aes16*9/10 g16 fis] } \\
{ a a a a } >> s2.
}
The following doesn't really solve the problem, but might do it when the
above mentioned fix has been included.
\relative c'' {
\clef alto
<< { bes16 aes g fis } \\
{ a <aes \tweak #'transparent ##t a> a a } >> s2.
}
/Mats
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user