Random notes around A (440 hertz) fall down at an ever increasing rate.
A simple autocorrelation pitch detection algorithm detects the single strongest pitch from the microphone.
Uses the Web Audio API to record from the microphone and obtain the raw samples.
Go to https://tweoss.github.io/note_invaders, turn up your volume, and use headphones!