Tested tool guide
Tested browser tools
Checked August 16, 2026
What Virtual Piano Keyboard does, with a checked example
This tool renders a piano keyboard in the page and plays it two ways: click a key with the mouse, or press computer keys, each bound to a note. Sound is synthesized live with the Web Audio API, so there are no audio files to load and no instrument needed. The surprise most users hit: the computer-keyboard mapping is laid out by QWERTY position, not by pitch. Black keys sit a row above the white keys instead of between them, and the note that plays for a given key follows the on-screen legend, not musical intuition. A first click is also required before the browser will make any sound.
Worked example
A concrete input and expected output from the current implementation.
Input
Click the on-screen key for A4, the tuning A above middle C, and hold it.
->
Expected output
A 440 Hz tone that sustains while the key is held and stops the moment it is released.
Note frequencies follow equal temperament: f = 440 x 2^((n - 69)/12) Hz, where n is the MIDI note number. A4 is MIDI note 69, so its frequency is 440 x 2^0 = 440 Hz, the international concert pitch (A4 = 440 Hz), and each octave up doubles the frequency.