Lurker News
I trained a 125M-parameter transformer to autocomplete piano performances in real time (~108 notes/sec on an iPhone 15).

The idea is basically GitHub Copilot or Tabnine, except instead of prompting it with code, you prompt it by playing a few notes on a MIDI piano. The model then continues what you played, entirely on-device.
The app is free if anyone wants to try it. Happy to answer questions about the model, training, Core ML, or the many things that didn't work.

Comments (117) 65 threads

Earlier comments
karmelapple3 replies#
Hearing the start of Für Elise, and then it being taken in an incredibly different direction, is surprisingly disconcerting.
h2aichat1 reply#
Can we hear it?
senbrow#
It's on the linked page if you scroll down just a bit.
marssaxman#
The disconcerting effect is enhanced by hearing the Dutch voice and reading the Dutch subtitles which don't quite match up with what he is saying in English! - until it all goes off into musical absurdity. Thanks for sharing.
ABNW#
I found it refreshing and interesting, not really disconcerting. Show's how AI can extrapolate in novel ways. An interesting feature.
ghm21993 replies#
Interesting. I do feel letting a machine generating notes is taking the joy out of improvisation, is it not?

I think one of the great, early, joys of learning a piano is gaining the following intuitions: The seemingly harder path of learning sheet is actually faster. Your mind _should_ learn to think in two dimensions Spatial — where fingers go — and Time — pitch and tempo – ** when learning. The _internalization_ of Space and Time queues guide the fingers in a dance that is vastly satisfying. This skill leads you to the final part of the journey that is improvisation and the one more exciting than what i am on now.
---
**
Space: Your finger placement on keys right, e.g. knowing how to go from landmark/anchor notes(mid-c, G, F etc) and then go to the others above and below it. Crudely this is some what like typing from your landmark f and j qwerty keyboard
Time: The out singing/verbalizing of the notes/beats on a time measure as you play them(per the time measure). e.g. you can say out loud 1-2-3-4 for 4/4 measure, if the measure has quarter notes say out loud. And `1-e-and-a-2-e-and-a-3-e-and-a-4-e-and-a` for a 4/4 with 1/16th note granularity. Do this as you play the notes and you get a sense of tempo.

elwell1 reply#
OP found a different source of joy: "I wanted the fun of working through the problem myself, rather than just implementing someone else’s research."
ghm2199#
Fair enough.
yieldcrv1 reply#
as with every discipline that AI and therefore computers can reason through suddenly:

you could always do the discipline you liked before for self fulfillment purposes, and you can still do it for self fulfillment purposes now

debugnik1 reply#
But most people who want to get good at their main discipline, even for self-fulfillment purposes, have been gaining the necessary experience through their job, because an unrelated job takes away too much time to do so.
yieldcrv#
its a good motivator and looks like we'll be returning to the more feudal version where just that class was focusing on the arts, only because everyone else is preoccupied with doing the things that pays the bills

unless they're actually serfs again and won't have bills to pay, but no access to anything outside of the fiefdom that they maintain all day

jeffreygoesto#
Reminds me of a story a coworker told me about his band rehearsal when the new drummer counted one-two-three-four-five-six-se-ven-eight.

Load more comments