Matrix keypad 4x4 to MIDI

Hello,

anybody have a sketch-example for using a matrix keypad 4x4 as midi keyboard (MPC style)? Thank you