Rainbow Piano App
Rainbow Piano App is an interactive virtual piano that generates musical tones through a Web Audio API, playable via mouse clicks, touch events, or computer keyboard mappings. The visualization presents a gradient-styled keyboard with animated key presses, where white keys respond to letter keys A through semicolon and black keys map to W, E, T, Y, U, O, and P. A demo melody button triggers a pre-recorded sequence. The interface uses DOM manipulation with CSS transitions for a smooth, responsive design across different screen sizes.
AI-generated descriptionInteractive JavaScript Piano
A responsive virtual piano that can be played with mouse clicks or keyboard keys!

Features
- Virtual piano with clean, modern UI
- Playable with mouse/touch or computer keyboard
- Beautiful gradient design and animations
- Demo melody playback feature
- Responsive for different screen sizes
How to Play
Using Mouse/Touch
Simply click or tap on any piano key to hear its note sound.
Using Computer Keyboard
The piano can also be played using your computer keyboard with the following key mappings:
White Keys:
A= C noteS= D noteD= E noteF= F noteG= G noteH= A noteJ= B noteK= C2 noteL= D2 note;= E2 note
Black Keys:
W= C# noteE= D# noteT= F# noteY= G# noteU= A# noteO= C#2 noteP= D#2 note