MIDI through usb

So if I change the firmware on it, I first need to write the code? If I understand it correctly. Such as I write the code for what I have lets say 10 buttons and 2 pots, I write my code for it put it on my arduino uno then change the firmware to what you sent me?