Hello PD forum!

I have completely new to Pure Data and have to use it for a uni project, my goal is too take the MIDI input data from electronic drum pads and convert them into DMX values for colours on intelligent lighting.

Is anybody out there able to help explain the coding because I have no idea and all of my time playing with PD has just left me confused?