JavaScript Piano
A simple, interactive piano built with JavaScript and CSS.
https://htmlpreview.github.io/?https://github.com/AliDeli80/Piano/blob/master/html/index.html
git clone https://github.com/AliDeli80/Piano.git
- Keyboard: Press the corresponding keys on your keyboard to play notes.
- Mouse: Hover on the piano to see what key to press.
- Creates a piano keyboard using HTML div elements to represent keys.
- Adds data attributes to each key, indicating the corresponding keyboard key.
- Styles the piano keys, giving them a realistic appearance.
- Uses CSS transitions and animations to create key press and hover effects.
- Assigns sound files to each key.
- Detects keypresses.
- Plays the corresponding sound when a key is pressed.
- Adds visual feedback, such as key highlighting and animation, to indicate which key is being played.
- Uses JavaScript to show key hints on hover, displaying the corresponding keyboard key above each piano key.
- Polyphony: Allow multiple notes to be played simultaneously.
- Sound: You can replace the sound files with your own.
- Key Layout: Modify the HTML structure to change the piano layout.
- Styling: Customize the appearance of the piano using CSS.
- Animations: Adjust the CSS animations to create different visual effects.
- Key Hints: Modify the JavaScript code to customize the appearance and behavior of the key hints.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes.
- Commit your changes with clear commit messages.
- Push your branch to your forked repository.
- Create a pull request to the main repository.
This project is licensed under the MIT License.