Akai MPK261: One more thing using Sysex…

In a previous post, I explained how to control preset changes on the mPK261 using SysEx commands. In this post, I explain how to get the MPK2 series to show some tricked pad colors.

The key to changing the color of a specific pad is to send a MIDI SysEx. The format is

F0 47 00 25 31 00 04 01 0x yy zz F7

where x and y form the address, in hexadecimal, of a specific pad in the MPK RAM memory and zz is the color number, from 0x00 to 0x0B. The x and y components of the address is a bit tricky because since you are sending a SysEx to a MIDI device, no byte can have a value greater than 0x7F, otherwise bit 1 is set and that breaks the SysEx stream. So the addresses for the pads are 0x0A7C and up: 7C, 7D, 7E, 7F and the next one is 0x0B00, and so on to oxoB0B.

For this to work, you need to write/modify some code. It’s doable with Processing and some DAW (but not Ableton!) might let you send SysEx on demand. You could also use an Arduino, like I did here.

The Arduino receives all MIDI message from the keyboard and will search for some commands, mainly Control Change or Note On. Receiving the proper command (in these examples by pressing a specific button) will launch code that will send a series of MIDI SysEx messages to the keyboard, forcing specific pads to show a certain color or just turn off.

Here’s a bit of (Arduino) code that has two loops; one to address the first four pads, then the next 12 and send the color 0x00, or black:


void loadDarkPads() {
  byte a;
  // first row of pads is 0X0A7C to 0X0A7F
  MPK2PadsSysEx [8] = 0x0A; //pad address is 2 bytes. First one is 0x0A or 0x0B
  for ( a = 0x7C ; a <= 0X7F ; a++) { //second byte varies depending on first byte
    MPK2PadsSysEx [9] = a; //Which pad
    MPK2PadsSysEx [10] = 0; //What color (here Dark)
    midiA.sendSysEx( MPK2PadsSysExLength, MPK2PadsSysEx, true);
  // second to fourth row of pad is 0X0B00 to 0X0B0B
  MPK2PadsSysEx [8] = 0x0B;
  for ( a = 0x00 ; a <= 0x0B ; a++) {
    MPK2PadsSysEx [9] = a;
    MPK2PadsSysEx [10] = 0;
    midiA.sendSysEx( MPK2PadsSysExLength, MPK2PadsSysEx, true);


This is the complete code for the Arduino.


This entry was posted in MPK261, Music equipment. Bookmark the permalink.

4 Responses to Akai MPK261: One more thing using Sysex…

  1. ToneCre8 says:


    Thanks for these very helpful articles on the MPK! This information has aided me in my custom script for Bitwig using the MPK2.
    I was wondering if you could help me figure out how to write to the display of the MPK2? I was able to accidentally at one point but for the life of me can’t figure out how I accomplished that! Shame to leave all those crystals unused. 🙂

    Thanks again!

    • rt says:

      Thanks for the comment.

      Writing on the display is very easy to do if you load a Preset, of course. I haven’t found the exact address to write directly on the display “live”. I’ll take a closer look and share.

    • Nick says:


      I’ve been looking into this as well, and did find a way to modify the name of the currently loaded preset:
      f0 47 00 25 31 00 0b 08 00 00 61 73 64 66 30 31 32 33 f7
      will set the name on screen to “asdf0123”
      Sadly this only gives you access to the 8 character preset name on the screen.

      As an aside, it seems for my controller, the pad change command is 31 rather than 30, not sure why it would be different.

      • rt says:

        You’re right about the “31”. It’s correct in the Arduino code that I provided. I’ll modify the post
        Thanks for the display address. I’ll look into it.
        I’m writing a Processing program that will dump RAM segments. We should be able to map most parameters eventually.

Leave a Reply

Your email address will not be published. Required fields are marked *