A compiler for songs.

songexe("Dallas House.wav") // → a score, then a video

Drop a song into songexe and it writes the score as a JavaScript program. Run the score and it draws the song in ASCII, one frame per 16th note. Change a line while it plays and the picture follows.

Nothing to install and no account. Your song is read on your own computer and never uploaded. Recording video needs Chrome or Edge.

dallas_house.jswritten by songexe from the audio
keys()Dallas House · from bar 33 · chorus · C# minor
songexe's terminal running dallas_house.js in the keys() field: a keyboard with the C# minor chord lit and the loudest note marked.
the chord being playedalso held stronglyloudest note
one bar = 16 steps · at 126.1 BPM a step is 119 ms

From audio file to video

1 · drop

Drop in a song

Any audio file. songexe finds the tempo, the key, the sections and which ones repeat.

Dallas House 24-bit 48kHz.wav
2 · compile

It writes the score

Sections, chords, kick, snare and hats, bar by bar, as code you can read and edit.

9 sections from 4 distinct parts
3 · run

It draws the song

Each section names a field to draw it. Record what it draws as a 9:16 reel or 16:9 video.

chorus(33, 16) · 16 bars · first time

50 fields

33 fields are pictures and 17 read the song as data. These four are from Dallas House.

The crowd() field: rows of figures reacting to the drums.
crowd()Front rows duck on the kick, the middle claps the snare, the back sways with the hats.
The seismo() field: kick, snare and hats drawn as pen traces.
seismo()A pen recorder for kick, snare and hats. One column is one 16th note.
The gears() field: drum gears and chord gears turning.
gears()A tooth per hit. The chord gear that is playing is lit.
The pixels() field: a city of windows lit by 16th notes.
pixels()Windows are 16ths, building height is loudness, the moon is the drop.

Four ways to run it

CodeThe score's own characters become the picture.
TerminalThe score runs as program output.
DebugStep through the song beat by beat.
TrackerThe song as pattern rows, one per 16th note.