Great! So many thanks for this! I studied about arrays and for loops today, I understand quite a lot more of your code now and think I will solve everything as I want.
Btw, is there a reason you mix hexadecimals and ordinary 0-15 digits as in the rest of the code?
Imbecillen:
Is there a reason you mix hexadecimals and ordinary 0-15 digits as in the rest of the code?
MIDI implementation tables are often written in hexadecimal, as this shows the byte structure of the messages (two hex chars for one byte). So it's just easier to copy the hexadecimal number from these tables than to convert it to decimal. The processor doesn't see a difference, it doesn't matter if you write 0x10 or 16, in memory, it will be 0b00010000.
Pieter
PieterP:
MIDI implementation tables are often written in hexadecimal, as this shows the byte structure of the messages (two hex chars for one byte). So it's just easier to copy the hexadecimal number from these tables than to convert it to decimal. The processor doesn't see a difference, it doesn't matter if you write 0x10 or 16, in memory, it will be 0b00010000.
Pieter
Oh, nice! Thank you 
Btw, I tried out the midi numbers yesterday for Ableton. Every CC number between 0-127 worked as a charm, but not nr 123 (notes off). Which of course was a bummer! But now I know, it will be CC numbers over two midi channels or just stay at 112 inputs in total.