Hi everyone,

As the title says I'm stuck on a project here which is a digital thumb piano; a handheld instrument with an Arduino Leonardo at its core. I'm trying to implement capacitive touch sensors to act as the keys of this instrument and although these sensors work perfectly as sensors, I can't seem to figure out how to write the code for this to make them work in a musical sense i.e MIDI/frequency.
If anyone can help or even guide me to someone who teaches this subject well I would be happy to pay for some tuition if it would make this clearer for me.

Thanks