Having switched the note on, you are not switching it off again!


else {
usbMIDI.sendNoteOn(26,0,1); //velocity zero means off
digitalWrite(led,LOW);
}