Pitch detection
The tool requests microphone access through the browser's getUserMedia API and routes the live audio through a Web Audio AnalyserNode. It estimates the dominant frequency of the captured signal, so the note reported is the strongest periodic component in the audio at that instant. One clear plucked string reads cleanly; noise, voices, or another instrument compete for the same estimate.