Skip to main content
100%

Piano App

✓ Published2🌍 Public
CCurran Kelleher
Last edited Apr 28, 2025
Created on Feb 19, 2025
Forked from React Starter

This interactive piano app renders a two-octave keyboard as an SVG, where clicking a key triggers a sine-wave tone. The React component manages a set of pressed keys, updating their visual state, while the Web Audio API's `createOscillator`, `createGain`, and `exponentialRampToValueAtTime` methods synthesize a short, fading note. The white and black keys are drawn as SVG rectangles with note labels, and the app uses CSS transitions to show a subtle press effect.

AI-generated description

An interactive piano you can play!

Also in GitHub: https://github.com/curran/piano-app

MIT Licensed

Similar vizzes