[HELP] Arduino Midi Library - Program Change

thanks for your reply.

I've tried with this code:

#include <MIDI.h>

void setup(){
MIDI.begin();
}

void loop(){

for (int i=0; i<10; i++){

MIDI.sendProgramChange(i,1);
MIDI.sendControlChange(0,0,1);
delay (1000);
}
}

I've added this command: MIDI.sendControlChange(0,0,1) and all works ok.

I can write any send command and it works.

I don't understand why. I've checked settings of Midi Device and they seems to be ok...