Thanks for your reply, Hans. I can confirm that the source was a single (Cubase) part and all notes were on the same MIDI channel.
I checked the source data of the MIDI file (in Cubase) again and in fact: I found a few places where two or more simultaneous notes did not have the same length which I had overseen in earlier. My fault, sorry ;-) With several round-trips Cubase-midi2ly-Lilypond/Frescobaldi I was able to locate all these unfavourable constellations. What I have learned: As soon as midi2ly meets more than one (overlapping note with divergent start/end midi2ly interprets it as polyphonic music, thus creates additional voices and fills the score up to this "polyphonic" position with rests in the additional voice/s. Regards Stephan Am 06.01.2021 um 00:54 schrieb Hans Aikema: > "|midi2ly| converts tracks into Staff > <https://lilypond.org/doc/v2.18/Documentation/internals/staff> and > channels into Voice > <https://lilypond.org/doc/v2.18/Documentation/internals/voice> contexts" > > so make your midi-file contain all music on a single channel should > result in a single voice > > apparently, given the results, your midi is currently 4 channels with music > > regards, > Hans > >> On 5 Jan 2021, at 12:26, Stephan Schöll <mu...@gmx.ch> wrote: >> >> Hi >> >> I have a self-recorded/-created midi file which I have quantized and >> simplified to death (lengths and durations to 1/16, no overlaps). Let's >> assume it's the the left hand part of a piano score. Now I want to >> convert it to a lilypond file using >> >> midi2ly.py -d 16 -s 16 -o "<path to file>\MITM_Piano_LH.ly" "<path to >> file>\MITM_Piano_LH.mid" >> >> This works without errors on the command line. But lilypond generates 4 >> voices and distributes the notes all over these voices which is a mess. >> I optimized the midi file in a way that midi2ly might simply produce one >> voice. >> >> How can I tell midi2ly to create only one voice? I couldn't find any >> helping hint in the documentation >> https://lilypond.org/doc/v2.18/Documentation/usage/invoking-midi2ly.en.html. >> >> Best Regards >> Stephan >>