A web-based virtual piano with 49 keys (C4-B7) that allows users to play using keyboard or mouse, featuring multiple instruments and auto-play functionality.
- Full 49-key piano (4 octaves from C4 to B7)
- 4 instruments: Piano, Organ, Acoustic Guitar, and EDM
- Volume control
- Mouse and keyboard support
- Keypress history display
- Auto-play with custom key sequences
- Adjustable playback speed
- Mouse: Click on piano keys
- Keyboard: Use mapped keys (see keyboard guide on the interface)
- Enter key sequence in the input box
- Adjust playback speed if needed
- Click "Play Music"
-
Octave 4:
- White keys: A (C4), S (D4), D (E4), F (F4), G (G4), H (A4), J (B4)
- Black keys: W (C#4), E (D#4), T (F#4), Y (G#4), U (A#4)
-
Octave 5-7:
- See keyboard guide on interface
- Download all files
- Open index.html in a modern browser
index.html- HTML structurecss/style.css- Stylingjs/audiosynth.js- Sound synthesis libraryjs/script.js- Interactive functionality
Works best on modern browsers (Chrome, Firefox, Edge, Safari).
Thanks to Keith Whor for the AudioSynth library.
MIT License
© 2025 Virtual Piano Project