The Songcode Audio Engine
The Songcode Audio Engine reads ode into a session of stems and plays it as sound. What it does, where it runs, and what it guarantees about the song you hear.
The Songcode Audio Engine is the part of Songcode that turns ode into music. It reads a song’s text into a session, a channel for every stem with the arrangement and the mix laid out bar by bar, and plays that session as sound. It is Songcode’s own engine, written for ode.
Songcode writes ode. The engine plays it. The two meet only in the text, so whatever the engine plays is exactly what the song says.
#What the engine does
- Reads the song. The text becomes the notes each stem plays: every hit and note with its time, its pitch, its length and how hard it is played. Chords, keys, swing and chance are worked out here.
- Checks it. Every stem has to read, name sounds that exist and play notes. A problem names its line. One broken stem never silences the rest.
- Builds the session. Each stem gets a strip with its own level, pan, mute, solo and meter. The arrange table says where each stem plays and the mix table says how loud, through the song.
- Plays it. Synths are computed live and recordings are played from short samples, through each stem’s effects, its strip and a limiter on the output.
- Renders it. Export plays the same session offline into a file, so a download sounds like what you heard.
From ode to sound follows each step at the level an odist needs.
#Where it runs
The engine runs in the browser that plays the song. Nothing is streamed while a track plays, and no sound is made on a server.
| where | what the engine does there |
|---|---|
| the Songcode Studio | plays, checks and renders every track you open, write or export |
| a shared link or song page | plays the published track for whoever opens it |
| the player in an AI assistant | plays the song under the answer, from the MCP server |
| an embedded player | plays a published track on another site, from the API |
The API and the MCP server return code and MIDI, never audio, because the sound only exists where the engine plays it.
#What it guarantees
- The text is the song. Every sound, level and change in a track comes from its ode. Nothing is hidden beside it.
- The same text, the same sound. Parts that use chance follow the seed in the song.
- Edits play at once. Change a stem while the track plays and the engine swaps it in without stopping.
- Song text is never run. ode declares music, so opening someone’s song is always safe.
#What it plays
4 synthesized drum kits and 18 more kits, 53 instruments, 6 singers, recorded instruments, percussion and textures. The sounds page lists every one by name.