Cool so I can just delete the pitchnote bits to tidy it up.
Yes but you need to replace it with a table that links your buttons to the MIDI note numbers.
An led will light when you apply a logic high to the resistor / LED seriese circuit.
I still don’t understand what you are trying to make and how the thing is supposed to operate. Can you describe exactly what it is supposed to do.