Midi Sequence Problem

It could be because of Note Off mesages, etc. In any cease, if your instrument is not multi-timbral, it is nonsense to send in MIDI events from different MIDI channel.