MIDI Reset

I'm sure your code is good for stuck notes but not for me.
My problem was that every time I compile, MIDI stop to work and I had to disconnect MIDI e Arduino USB cable to work again.
It happened only with one kind of cable not the others (I've got two for both)
With *softreset * everything fine now