stretch a MIDI melody?

Well you did call it a “part” which pretty much leaves only one option.