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.