The cable on the upper pic is an adapter for PC style analogue joysticks on the Amiga.
The lower pic most probably is a 1541-adapter for the parallel port. If you open the d-sub plug and there's no electronics inside, it can't be a MIDI i/f. The contacts of a MIDI plug are arranged in a semi-circle.