Rahul's Site · [2026-08-29] · updated 2026-09-03 · interactive

A dataset you can listen to

AI music models don't train on sound. They train on tables. This page loads a row from a table of 240 piano pieces, sampled from a Hugging Face dataset of 1.2 million, where each row is just a list of numbers, and turns that row back into music in your browser. Type any row number and press play.

The dataset

loubb/aria-midi on Hugging Face ↗

It's a table of solo piano pieces, the kind used to pretrain a music model. One row per piece, three columns. The music lives entirely in the third column.

columntypewhat it holds
piece_idstringname of the piece, e.g. 279732_0 (Aria-MIDI file id and segment)
n_tokensint32how many numbers encode this piece
input_idslist<int32>the piece itself, as a sequence of integers

Three sample rows, with input_ids truncated:

piece_idn_tokensinput_ids
009159_01,063[0, 648, 1872, 1827, 843, 1896, 1803, 884, ...]
181926_01,201[0, 870, 1872, 1704, 830, 1872, 1704, 869, ...]
061673_01,909[0, 582, 1872, 1789, 777, 1899, 1693, 739, ...]

Aria-MIDI ships four subsets. This page samples from the smallest one:

subsetfileswhat it is
full1,186,253every transcribed segment, no filtering
pruned820,944light filtering, used to pretrain Aria
deduped371,053one file per opus and piece number, heavy filtering
unique32,522only files with exact compositional metadata. The 240 rows here are a random sample of this subset, capped at 75 seconds each

Source and credit

Published on Hugging Face by EleutherAI (Louis Bradshaw and Simon Colton) as Aria-MIDI, the dataset used to pretrain their Aria piano model. None of this music was typed in by hand: every file is a real human performance from a public recording, transcribed from audio into MIDI by their Aria-AMT model. License is CC BY-NC-SA 4.0 (free to use and share with credit, no commercial use). The integers on this page were produced from the raw MIDI files with a small encoder that follows the Aria tokenizer layout: one pitch and volume token, one onset token, one duration token per note, with a marker every 5 seconds.

This page originally read rows live from a derived dataset (Itsuki-music/text2music-generation-data-collection) that repackaged Aria-MIDI with the same token scheme. That dataset went private or was removed in early September 2026, so the rows are now served from this site instead.

432,182 rows in total, 8.62 GB. Besides the token table, the repo ships the raw MIDI files for every piece and the tokenizer source code.

The full token vocabulary, in plain language
token typemeaning
KEY_*the key of the piece, one of 24 (C major through B minor); first number in every row
TEMPO_*overall speed: slow, moderate, or fast
SEC_A ... SEC_Hsection labels; the header lists the piece's structure (like verse/chorus for a song), and the label repeats in the stream so the model always knows which section it's in
PLAN_0 ... PLAN_9digits; after each section label in the header, they spell out how many 5-second windows that section lasts
piano (pitch, velocity)a key press: which of the 128 keys, and how hard, in 13 loudness steps
onsetwhen the press happens, in milliseconds on a 25ms grid, counted within the current 5-second window
durhow long the key is held, same 25ms grid
<T>the clock: advances time by 5 seconds and resets the onset counter; a 3-minute piece has about 36 of these
pedal on / offthe sustain pedal, which lets notes ring after the key is released
<S> / <E>start and end of the note stream; everything before <S> is the header

One more thing the numbers carry: for rows that trace back to Aria-MIDI (the numeric piece_ids), EleutherAI published provenance metadata: composer, genre, performer, opus. There are no song titles in the data, but composer plus opus usually pins the piece down, and it's how you can confirm that the pop cover you just recognized is filed under its actual writer. These show as green badges when available.

So the row you hear below reads like: "G major, fast, sections A-B-A-B-C-D lasting so many windows each, begin: pedal down, press key 79 at 0ms softly, hold 325ms, press key 55 at 25ms, ..." and on for a few thousand numbers until <E>. The dataset card also notes that pedal events are ordered before simultaneous notes, and that the section and header tokens can be stripped if you only want to model the notes themselves.

Pick a row

no row loaded
0:00 / 0:00
Pick a row above.

How a row becomes music

Every piece in this dataset was flattened into one long list of integers so a language model can read it the same way it reads text. Three kinds of numbers do almost all the work:

1. The row: raw numbers

What's actually stored. This is the start of the row you loaded.

—
→

2. Decoded: musical events

Each number maps to a meaning: which key was pressed, how hard when for how long. Header numbers key, tempo, structure describe the whole piece.

—
→

3. Sound

With press + when + how long for every note, the piece is fully reconstructed. Your browser synthesizes each press with a simple piano tone. That's what the play button does.

—

The point worth sitting with: the entire performance survives the trip through a spreadsheet. Time becomes a column, pitch becomes a column, touch becomes a column, and nothing musical is lost. A model that learns to predict the next number in these rows is, by construction, learning to play the piano.