Help with Capacitive Touch Midi Controller

For a project in my 3rd year of college I have been trying to create a Capacitive Touch Midi Controller similar to the one on this link (https://www.instructables.com/id/DIY-3D-Controller/).

I have successfully been able to get one plate working and it is functional inside of Ableton Live 10 but when i add more than one plate it fails to work as the delay from using more than one plate is to big I believe. ControlChangeMidiOut is the code below that works and the other one is the code I have been trying to use and it has been unsuccessful. I’m not sure as to why this is as I am new to Arduino and coding in general. I am using a windows 10 laptop and an Arduino micro.

I would appreciate anyone who could point me in the right direction as to why my code is wrong or what I could change. Thank you.

AllNumbersAddedErrors.ino (6.35 KB)

ConrtolChangeMidiOut.ino (2.77 KB)