A number of MIDI interfaces exist for the C64. Most of them take the form of cartridges.
Worth a read if you don't know what MIDI is.