I can see you have your onValue set to 0 and offValue to 1. It could be the reason, I did the same mistake in the past. I suggested to @Tomas that the opposite order of the fields would be more logical.
@martin I think I got it. I must have been using obsolete commands. It is working now, however, it only works properly if the pads all start in an ‘off’ state (or if I load the preset with them all on and then turn them off). Since the ‘INIT VOICE’ has all the operators on it would be good to start the preset with all of the buttons in an on state.