Midi-Out does not work well

I too have the same problem as vanakaru, yet, I can only play two notes of the scale. Could you possibly post the reworked code for this as the code you posted on the instructables website is only half there!

Thanks!