Been chipping away at this for a few months and it's finally in a state I'd let other people near. Full replacement firmware for the MPK mini IV, MIT licensed, zero involvement from Akai. The short version: it turns the thing into an 8-track MIDI looper with scale-locked keys, pads that trigger diatonic chords from whatever scale you pick, an arp, pattern chaining, and a song mode. Also redrew the whole UI from scratch becuase the original layouts were getting painful to stare at. How I got there: the stock firmware image isn't encrypted, so I pulled it apart and mapped the hardware from that. Main chip is an AT32F405 (Cortex-M4F), screen is a small ST7735-type panel driven over SPI with DMA. everythign runs through Akai's own USB update protocol, so no opening the case or touching SWD pads.
Two things I was stubborn about. The flasher checks the bootloader region against a hash and refuses to proceed if it doesn't match stock byte for byte, and shift+undo at power-up still drops you into update mode no matter what. Worst case scenario is you just flash the stock image back and carry on. Also spent a full day moving MIDI clock off the main loop and onto a hardware timer because the screen animations were audibly wobbly. Clock is dead steady now even with the display redrawing constantly.
Repo with hardware notes and the flasher tool: