Piano Random is an interactive website with a virtual piano keyboard that allows playing random sounds.
- Virtual piano keyboard with white and black keys
- Ability to play random piano sounds
- Locking/unlocking individual keys (to exclude them from random selection)
- Hiding/showing information about the currently played sound
- Responsive design adapted for various devices
- Option with chords and triads (which will be further developed as it doesn't work perfectly yet due to having too few sounds on the current keyboard)
- Click the "Play random sound" button to play a randomly selected piano sound
- Click on any piano key to lock/unlock it (locked keys will not be randomly selected)
- Use the "Show sound name"/"Hide sound name" button to control the visibility of information about the currently played sound
- HTML5
- CSS3
- JavaScript (ES6+)
- Web Audio API
- Clone the repository to your computer
- Open the
index.htmlfile in a web browser
To add your own piano sounds:
- Place sound files in MP3 or WAV format in the
sounds/folder - Name the files according to note names, e.g.,
C4.caf,D4.caf, etc.
© 2026 Piano Random - Project created with ❤️