Step sequence new hardware

Hi all, I have designed my new controller and it will be available soon, but I would love some help with it if anyone can,

I really want a script that when loading drum rack the 16 pads in the middle are automatically assigned to the drum rack in live.
The 16 pads below I would like as a step sequence with visual tracking across the pads and when selecting a pad the pads corresponding step sequence will be available on the 16pads below which you can add or remove ok the fly like any step sequence, the rest of the controller I am happy to just assign to midi mappings.

I have no experience writing anything like this, is there any easy way around this as it’s not an in depth script for the functions I require but have no clue where to start!

Or if someone could help/put me in the right direction