MIDI controller, multiplexing and demultiplexing, code problems??

Problem solved, delete thread...