Piano Genie
Turn your keyboard into a piano with Piano Genie. No music skills required—just press keys and enjoy AI-generated melodies that sound like a real pianist.
About Piano Genie
A Simple Way to Make Beautiful Piano Music
Piano Genie is an interactive web tool that transforms your keyboard or touch screen into a piano-playing experience. You don’t need any musical background—just tap keys 1 through 8 or use the home row on your keyboard, and the tool will generate music that sounds polished and expressive.
Powered by Smart Music Technology
Built using magenta.js, Piano Genie uses machine learning to map your key presses into complex piano melodies. It analyzes the way a pianist would move their fingers and adapts your input into music that flows naturally. Even if you’re just randomly pressing buttons, the output feels intentional and musical.
How Piano Genie Works
Keyboard and Touch Controls
You can play Piano Genie by using your computer keyboard or by tapping the colored on-screen blocks. The numbered keys 1 to 8 or the letters A-F and J-; let you control different musical notes. A space bar acts as the sustain pedal, adding a more expressive feel to your music.
Melodies Based on Player Intent
The tool interprets your playing style and timing to make the melody feel more human. The more rhythm and variation you bring, the more the generated melodies adapt to mimic a skilled piano performance. It’s not just a toy—it’s a surprisingly expressive experience.
Educational and Creative Uses
For Beginners Exploring Music
Piano Genie is perfect for beginners or anyone curious about playing piano. It removes the barrier of learning scales and reading music. Users can experiment freely and discover what sounds good through hands-on interaction.
For Creative Play and Inspiration
Whether you’re a songwriter looking for melodic ideas or someone who just enjoys musical play, Piano Genie provides an inspiring space to explore sound. Its unpredictability can lead to creative breakthroughs you wouldn’t reach with traditional instruments.
Technical Background and Open Source
Built with magenta.js
Piano Genie uses magenta.js, a JavaScript framework developed by Google for creating art and music with machine learning. The project shows how AI can be used to assist in real-time creative expression without replacing the human touch.
Open for Exploration
Developers and curious users can dive into the source code on Glitch to understand how the tool works. It’s a transparent and educational project that invites tinkering and remixing.
