Reference tone

Play a reference pitch with selectable waveform and frequency.

npx web-audio-api tone sine A4 2s
wave=<type>
sine, triangle, square, or sawtooth
freq=<hz|note>
frequency or note name in the CLI (default: 440)
-d, --duration <time>
run time (CLI accepts s/m/h suffixes; default: 30s)
ready

This is an online tone generator: pick sine, triangle, square, or sawtooth and a frequency, and it plays a reference pitch, useful as a 440 Hz test tone or any sine wave sound you need on demand. Play it directly in the browser, or generate the same tone from the Node CLI.