I changed the amount of ticks from 40 to 0. That improved the chord output. Because they were also off. Tried several settings, but the melody is not quantized.

The melody was generated with the Melodist.