Can a multiplexer handle more than one type of input<control surface.h>

So reading and writing seems not too difficult for you. Otherwise you wouldn't have read so many postings and taken the effort of writing this answer.

you are right these lines of code complete the sketch.

And you are right I did not take the time to carefully analyse the sketch or to lookup the library.

For the convenience of all users for an easy look-up how the control-surface-library works
Here is the link to the control-surface-library

below all the subfolders there is a documentation section with example-codes
and a link ho to Getting started with the USB-MIDI control_surface-library

The way I posted made you hate me. After this posting I decide to stay away from this thread.