MIDI does not record Analog or Digital sound waves either. It encodes the keyboard functions. The functions include - the start of the note, its pitch, length, volume, and other musical attributes. So the answer is MIDI is neither Analog nor Digital.