Basic implementation of pitch recognition using Web Audio API