An augmented reality piano application that lets you play piano using your phone's camera. Simply point your phone at a paper with piano keys, and you can play music by touching the virtual keys that appear on your screen.
- Works on iPhone and other mobile devices
- Uses AR.js for augmented reality
- Real-time piano sound synthesis
- Touch-enabled interaction
- Visual feedback when playing notes
- Print the piano marker pattern (available in
marker.png
) - Open the application on your mobile device
- Allow camera access when prompted
- Point your camera at the printed marker
- Virtual piano keys will appear on top of the marker
- Touch the keys to play music!
- A modern mobile device with a camera
- A modern web browser that supports WebAR (Safari on iOS, Chrome on Android)
- Internet connection for loading resources
- Printed marker pattern
This application uses:
- AR.js for augmented reality
- A-Frame for 3D rendering
- Tone.js for sound synthesis
- Ensure good lighting conditions
- Keep the marker pattern flat and visible
- Allow camera and audio permissions when prompted
- For best results, use the latest version of Safari (iOS) or Chrome (Android)