fixed timing issues with long melodies