Arduino signal to Midi

I created a code to receive signals from an Arduino Uno and translate those signals to trigger drum sounds on a sound player. So far, it has been quite successful. I want to develop it further so that the signals are converted into MIDI format, allowing integration with other applications on Android to play the MIDI data in other drum apps.

Please review my code to make it more efficient... and I apologize for my poor English.

This board has midi posts in its search.

You have working code for the interface, with no expansion needs there, I would leave that alone.

Your text to list conversion could benefit from study of AI2 csv and JSON blocks and the use of lookup tables.