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

Show all comments

Showing thread 16 of 65

alexandermorgan#
Hey @simedw this is an awesome project! A few quick ideas in case you hadn't tried them yet: 1. Have you considered representing different parts/voices independently? That would be harder to get good data for, but would likely help with voice-leading and phrasing and... 2. ... durational representation -> would it simplify your durational representation system if you modelled ties? E.g., then you wouldn't need a token to represent a duration worth 4 triplet eighth notes because you could model the tie of a quarter and a single triplet eighth. That would greatly reduce your durational vocab, right? 3. I've created a lot of academic tools for musical syntax analysis for humdrum, CRIM, VIS, and also made a couple of minor contributions to music21. I'd be happy to recommend a few automated analyses that might help the model with syntax or phrasing.