You're right. I don't have working sound right now, so I relied on
midi2ly
which didn't output the dis.
In any case, the above example is also problematic: the {r8 dis} is
inserted
_after_ the c4, which delays all subsequent midi output by 1/4. New
attempt:
%
%Yuval Harel
\header {
texidoc = "If notes from two polyphonic voices inside one staff
overlap,
midi output is delayed.
If the overlapping notes are identical, the second one is not played. "
reportedin = "2.4.0"
}
\version "2.6.3"
\score {
<<
\new Staff <<
\new Voice {c4 c c}
\new Voice {r8 dis d4 d}
>>
\new Staff {e4 e e e}
\new Staff <<
\new Voice {r2 f4}
\new Voice {r2 r8 f}
>>
\midi {}
}