Potential hardware solutions to detecting which string/fret is being played on a guitar?
A good MEMS accelerometer can operate throughout the full audible range (https://www.analog.com/media/en/technical-documentation/data-sheets/adxl1005.pdf). If you strategically placed a few of these on the guitar I bet you could pick out the phase differences based on the vibration of the guitar.