some deep tweaking to get MIDI channel control into nearly done shape for 3.1