# RollTab - AI autocomplete for piano on-device

Original title: Show HN: I trained a 125M model to autocomplete piano on-device

> Hacker News story 49373456 · language: en · submitted 2026-08-20
> Web version: https://zeli.app/story/49373456
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 575 · by [simedw](<https://news.ycombinator.com/user?id=simedw>) · 💬 113
[original](<https://simedw.com/2026/08/20/midi-autocomplete/>) · [HN discussion](<https://news.ycombinator.com/item?id=49373456>)

## Summary

RollTab is a free iOS app that turns your MIDI piano into an AI-powered musical partner. Using a 125M-parameter transformer trained on MIDI data, it autocompletes your playing in real time, suggesting notes and chords that follow your style. The app runs entirely on-device, ensuring low latency and privacy. Built with a novel note-level tokenization and refined through direct preference optimization, RollTab offers a unique, responsive way to explore musical ideas and overcome creative blocks.

## Key quote

> Think GitHub Copilot, but for piano.

## HN discussion (113 comments)

### [tom_vidal](<https://news.ycombinator.com/item?id=49375955>)

> This sort of “autocomplete” is actually fundamental to how classical composers were trained.
>
> For anyone interested, I’d highly recommend reading Robert Gjerdingen’s article Gebrauchs-Formulas. https://www.researchgate.net/publication/259731561_Gebrauchs...
>
> You can also listen to the transcript of four Russian composers, including Rachmaninoff, playing this pattern recognition and generation game at a dinner party in the late 1800’s: https://youtu.be/PlFPOWuwBHI?is=EKBK7QQkJs4MsTCU
>
> Composers at the time could do this just by looking at sheet music and audiating, without using a piano.

### [joshuamerrill](<https://news.ycombinator.com/item?id=49378199>)

> Classical pianist and software product designer here.
>
> I see so much in common with this project and the numerous AI-based UX design tools out there. Whether it's music or UI, now that the "generation" portion of the work costs zero, all that remains is taste.
>
> And so much of taste comes from exploring and killing off possibilities that turn out to be dead-ends. I love the idea that models like these will help us find the dead ends faster, or even produce a gem here and there.
>
> P.S. if you want another uncanny version of Fur Elise, listen to Beethoven's own 1822 revision: https://www.youtube.com/watch?v=s24TtiGgb6k. His 1810 version that we all know was simpler and more balanced. But for what it's worth, Beethoven didn't publish either of them.

### [jasonjmcghee](<https://news.ycombinator.com/item?id=49375352>)

> I think this is a great project and very HN. Not sure why the comments are so focused on the deliverable- you learned way more and had a much more interesting experience.
>
> One think I didn't see mentioned in the post- maybe I missed it- how large was the data? How many samples did you use to pretrain and post-train

### [karmelapple](<https://news.ycombinator.com/item?id=49375748>)

> Hearing the start of Für Elise, and then it being taken in an incredibly different direction, is surprisingly disconcerting.

### [goda90](<https://news.ycombinator.com/item?id=49374380>)

> Reminds me of this project to generate every melody possible algorithmically in order to fight music copyright lawsuits. 
>
> https://allthemusic.info/

### [ghm2199](<https://news.ycombinator.com/item?id=49375833>)

> 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.

### [mare5x](<https://news.ycombinator.com/item?id=49377213>)

> Really cool! It reminds me of a demo I saw live at NeurIPS: https://www.youtube.com/watch?v=8s3V922h3CU (paper at https://openreview.net/pdf?id=3yeBer3J5z).
>
> If you like such creative AI work, I would recommend looking at the other "NeurIPS Creative AI Track 2025" submissions as well.

### [timmb](<https://news.ycombinator.com/item?id=49374339>)

> Reminds me of Francois Pachet’s Continuator (all the way back in 2003, using hierarchical markov models)
>
> https://www.francoispachet.fr/continuator/

---

## Cite

- Page: https://zeli.app/story/49373456
- Date: 2026-08-20
- Source: simedw.com (https://simedw.com/2026/08/20/midi-autocomplete/)
- Hacker News: https://news.ycombinator.com/item?id=49373456

## Other languages

- zh: https://zeli.app/zh/story/49373456 · markdown: https://zeli.app/zh/story/49373456.md
- ja: https://zeli.app/ja/story/49373456 · markdown: https://zeli.app/ja/story/49373456.md
- ko: https://zeli.app/ko/story/49373456 · markdown: https://zeli.app/ko/story/49373456.md
- de: https://zeli.app/de/story/49373456 · markdown: https://zeli.app/de/story/49373456.md
- es: https://zeli.app/es/story/49373456 · markdown: https://zeli.app/es/story/49373456.md
- ru: https://zeli.app/ru/story/49373456 · markdown: https://zeli.app/ru/story/49373456.md
