Hacker News
Show HN: Web app to practice piano from a MIDI file
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
|next
[-]
AlexITC
|root
|parent
|next
[-]
For what is worth, the sight reading part is how this started, mainly as a PoC.
viccis
|root
|parent
[-]
Ideally, the work you do learning a piece from sheet music is practicing both your ability to read music and your ability to play it. There's no reason to sacrifice the former for (mild) gains to the latter in my opinion.
edit: FWIW, I think the sight reading component of this is not terrible but isn't really building a lot of intuition. It's great for the first week or so when you're learning to map a note to a key, but after that, the best sight reading practice is done with real music so that you not only start to intuitively understand the "pitch to key" mapping, but you also start to pick up on patterns so that your brain will be "predicting" what comes next with relatively high accuracy. Basic concepts like triad shapes are things your brain will pick up even if you don't realize it.
AlexITC
|root
|parent
|next
[-]
Sight reading wise, I agree, this was just the simplest attempt, I intend to improve it over time.
viccis
|root
|parent
[-]
Having learned several instruments, with and without teachers, I'm not so sure about this. Bad habits are hard to unlearn, but I don't think this is really going to introduce "bad" habits.
One idea for sight reading would be to just load up a bunch of Bach chorales and just sample sequences of notes to get something that subconsciously trains them on how these melodies general flow. Kinda like how just playing through Donna Lee over and over again did wonders to teach my brain how bebop lines work.
jkahrs595
|root
|parent
|previous
[-]
viccis
|root
|parent
|previous
[-]
This guy's had a bunch of classical ones online for ages, I still remember using them in the 2000s: https://waltercosand.com/#Scores
If it's not classical, your best bet is Musescore or just googling "<song> sheet music pdf" and seeing what turns up.
I can give you more info if you let me know what kind of things you're looking for
mikeleeorg
|next
|previous
[-]
AlexITC
|root
|parent
[-]
While the sight reading page mode works, the interesting one to practice from MIDI files won't, the app would need to adapt the piano size + detect pressed keys (so far keys are only displayed).
The other main issue is that ipad browsers not supporting WebMIDI, a native app would resolve it but it is not in my plans.
Madmallard
|next
|previous
[-]
Real merit would be making something like Piano Marvel but improving their rendering of sheet music to be more realistic and adding feedback and visualization of dynamics.
It hasn't been done because it's far less useful in the long run than just learning to listen to yourself play while reading the actual sheet music and is exceedingly difficult to do.
adrianh
|root
|parent
|next
[-]
In my biased opinion, it's easily the best, most polished music practice tool on the market. We've been building and polishing it since 2012.
AlexITC
|root
|parent
|next
[-]
Agree, I love Soundslice but couldn't recall its name, I got to use it through another app embedding it.
I haven't tried most of the available features but related to sheet music rendering and the available settings, I haven't seen anything close to it.
frandibar
|root
|parent
|previous
[-]
adrianh
|root
|parent
[-]
https://www.soundslice.com/help/en/player/notebook/349/wait-...
frandibar
|root
|parent
[-]
AlexITC
|root
|parent
|previous
[-]
Can you elaborate? I'm not familiar with that app.
AlexITC
|next
|previous
[-]
- Simple support for MusicXML to play but no sheet rendered yet.
- Added piano sample files to get decent sound.
- Added a way to record what you play.
- Resource optimization when idle.
folli
|next
|previous
[-]
AlexITC
|root
|parent
[-]
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
|next
|previous
[-]
AlexITC
|root
|parent
|next
[-]
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.