Back/Design/Cursor
IntermediateDesignCursor

How to Build an Interactive Piano Prototype with Sound Using Cursor

Learn to rapidly prototype complex, interactive components with sound using a single prompt in Cursor. This workflow demonstrates how to automate project setup and generate a fully functional digital piano in moments.

From How I AI

How I AI: A Designer's Guide to Cursor with Elizabeth Lin – From Y2K Aesthetics to Interactive Pianos

with Claire Vo

How to Build an Interactive Piano Prototype with Sound Using Cursor

Tools Used

Cursor

AI-first code editor

02Step-by-Step Guide
1

Automate Setup with a Cursor Rule

Create a custom rule to handle repetitive setup tasks like creating new project folders and files. This simple instruction automates the initial steps, saving time and reducing friction when starting a new prototype.

Prompt:
If I ask you to create a new prototype, copy this folder and then add it to my homepage.
2

Generate the Piano with a Single Prompt

In a new chat to ensure no context bleed-over, use a descriptive prompt that specifies both the component and the desired visual style. Cursor will generate all the necessary HTML, CSS, and JavaScript to create a functional prototype.

Prompt:
create a new prototype for a digital piano. in the style of Old Mac Os
3

Explore and Interact with the Prototype

Test the generated component by interacting with it (e.g., clicking the piano keys). You can then ask follow-up questions to understand the underlying code and learn how to customize it further.

Pro Tip: Ask follow-up questions like, 'What library are you using for sound?' or 'How can I change the waveform?' to further customize your interactive prototype.

Start shipping
better products.

Join 100,000+ product managers who use ChatPRD to write better docs, align teams faster, and build products users love.

Free to start
No credit card
SOC 2 certified
Enterprise ready