Arduino UNO As A MIDI Keyboard

You cannot have two variables with the same name in the same scope.