Show HN: Web app to practice piano from a MIDI file
piano.alexitc.comWhile learning to play piano, I have tried a few apps that allow connecting it to get live feedback. This is fun but most apps have subscriptions involved with a limited song list + inconsistent features.
I wanted to build one of these for a long time but never had the time, I tried AI to see how far I can go and I'm very happy with the result.
This works by selecting a MIDI file as input, showing falling notes over a piano (like Synthesia but on the web).
The most helpful feature is looping over a section which can be controlled by the piano itself (to restart the loop). This has been super helpful that I'm planning to add more shortcuts.
The app includes a few experiments like a sight-reading practice mode, and a song library that reads a local folder of MIDI files and cover images.
The main limitation is that Web MIDI needs Chrome. The UI also has too many controls.
Links:
- 90s Demo video: https://youtu.be/PszlmVDgZvo
- Source: https://github.com/AlexITC/piano-practice-app
Feedback welcome.
Edit:
- Since I posted I got extra shortcuts not shown in the demo to deal with loops (UI now shows these).
- I got great MIDI files for trying from https://www.mutopiaproject.org/ like the demo'ed "Rondo Alla Turca by Mozart", also tested "Moonlight Sonata 1st movement by Beethoven"
Is there a way to detect played notes from the microphone, e.g. when using a 'traditional' piano without Midi-output?
This is really cool! I play guitar and I've tried to learn sheet music a few times, and my brain just won't. I think this would be a really useful way to learn, especially being able to slow it down.
This looks neat but memorizing a song so you can play it guitar hero style seems like it might not be the best way to practice. It'd probably be more useful to learn to read music if you really want to play piano.
Of course you are right, but, why not both? sometimes I'm just tired and the guitar-hero style brings joy with songs I haven't practiced much yet.
For what is worth, the sight reading part is how this started, mainly as a PoC.
This is pretty cool, thanks for sharing! It would be even more useful if the sight reading would let me upload a MusicXML file or something. Do you plan to share the code for this please? It would be fun to play with :)
oh it would help if I read the submission more closely - perhaps linking to GitHub from the app itself would make sense? Unless I missed that too?
MusicXML is in my plans, from what I understand, this can work nicely with VexFlow (what I use for the sight-reading page) to render sheet music.
Looks like you found the code, I added a github icon to the top-right corner of the pages.
Its a weekend project that turned out cool enough that I wanted to share it.