Remix.run Logo
▲ Show HN: Web app to practice piano from a MIDI file(piano.alexitc.com)
37 points by AlexITC 10 hours ago | 9 comments

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"
▲tarentel 3 hours ago | parent | next [-]

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 2 hours ago | parent [-]

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.

▲k4lk an hour ago | parent | prev | next [-]

really great, was just looking for something exactly like this to try and learn to read notes while also trying to play something. It would be helpful that when playing a wrong note it also showed on the sheet.

▲folli an hour ago | parent | prev | next [-]

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

▲AlexITC an hour ago | parent [-]

There is, many apps already do it, in my experience it tends to be flaky. I'm lucky enough to have a midi port which is more reliable.

I have no experience in that area, Claude says that detecting single notes is relatively easy but chords complicate it. Personally, I don't have plans for this.

▲indentit 3 hours ago | parent | prev | next [-]

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

▲AlexITC 2 hours ago | parent | next [-]

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.

▲indentit 3 hours ago | parent | prev [-]

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?

▲derekwhee an hour ago | parent | prev [-]

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.