A simple yet interactive Virtual Piano built using Vanilla JavaScript, HTML, and CSS. This project allows users to play piano sounds either by clicking on the keys or using the keyboard.
- 🎵 Playable piano keys with sound
- 🎹 Supports both mouse clicks and keyboard input
- 🎨 Simple and responsive UI design
- 🚀 Built using HTML, CSS, and JavaScript (No external libraries)
- HTML - Structure of the piano
- CSS - Styling and layout
- JavaScript - Handling sound play and interactions
- Click on the piano keys to play sounds.
- Use your keyboard keys to play corresponding notes.
- Enjoy playing your favorite tunes! 🎶
Virtual-Piano/
│── index.html # Main HTML file
│── style.css # Styling for the piano
│── script.js # JavaScript logic for interactions
│── sounds/ # Folder containing piano key sounds
└── README.md # Project documentation
- Clone the repository:
git clone https://github.com/your-username/Virtual-Piano.git
- Open
index.htmlin a browser to start playing!
Want to improve this project? Feel free to submit a pull request! 🎉
This project is open-source and available under the MIT License.
Enjoy playing your Virtual Piano! 🎵✨