Serial MIDI and Arduino MIDI

Should be no difference. The sketches use a serial port (hardware or software implementation). The 5 pin DIN needs to be connected to the serial port and the USB already is.

If you want to share the standard serial lines for the 5 pin din you will need to work out how to switch between the two (arduino and MIDI) as downloading the compiled sketch will also end up in the MIDI stream.