Show HN: Web app to practice piano from a MIDI file

piano.alexitc.com

29 points by AlexITC 8 hours ago

While 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"
folli 5 minutes ago

Is there a way to detect played notes from the microphone, e.g. when using a 'traditional' piano without Midi-output?

derekwhee 14 minutes ago

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.

tarentel 1 hour ago

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.

  • AlexITC 51 minutes ago

    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.

indentit 1 hour ago

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 :)

  • indentit 1 hour ago

    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?

  • AlexITC 44 minutes ago

    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.