I am making a freeware program for people with Multiple Sclerosis (one of the symptoms is shakey hands) and it is going to be a programable piano on the computer. The problem is that I can't save midi files of single notes (like Middle C) with my PSR-540 without a gap being at the begginning.

I can't get rid of this gap, so when you click on a key in my program, there is a pause before anything happens.

Is there a way to get rid of this gap?