Close notes in a chord, when they are written down from two voices lead to collisions. Example:
{ [ \staff<2> \clef<"g2"> \key<-1> \meter<"4/4"> _/4 \stemsUp \beamsOff g/2 ] , [ \staff<2> empty/4 \stemsDown \beamsOff f/4 \beamsOff e/4 ] }
Tried also with the\splitChord
tag which gives the same result.
The problem is that there is no chord but only multi voices on a single staff. There is currently no contextual information to solve this kind of issue. The standard solution is use the \noteFormat tag e.g.:
{
[
\clef<"g2"> \key<-1> \meter<"4/4"> _/4 \stemsUp \beamsOff \noteFormat<dx=-0.85>(g/2)
]
,
[ \staff<1>
empty/4 \stemsDown \beamsOff \noteFormat<dx=0.85>(f/4) \beamsOff e/4
]
}
but that's clearly not a solution for automatic translation from musicxml.
Maybe a strategy similar to lyrics collisions could be applied (i.e. afterhand collision detection). However, space insertion won't be the solution and I suspect the potential solution will be far more complex to implement.
Dominique,
Looking into details, I think there's enough contextual information in MusicXML which might be sufficient, combined with
\noteFormat
in my case. It'll require a lot of book-keeping on the LibMusicXML side since MXML'sdefault-x
for note is relative to the beginning of the measure and\noteFormat
dx is relative to note position. But I'm willing to look into this at some point.This means that we can ignore this Bug and close it for now!