Duplex, Launchpad, Keyboard config and drum grid

EDIT – actually I think got this sorted

EDIT EDIT - actually I don’t!

I’ve got the layout exactly how I want it, but the pads on the Launchpad output their notes, and they don’t map to the notes that I want in the ControlMap. Got a feeling that I need to create a new Keyboard Layout (like HarmonicLayout.lua) to transform the incoming midi note data from the Launchpad - like a hash map. Is this the case?

Sorry this is probably very straightforward, or perhaps I’ve not been explaining very well what I want to do!

Attached are both the .lua and .xml files.

Thanks