Songs are just text — so write them like text.

Music Text Language (MTL) is an open-source Python project by amatarazzoconsulting. It reads a plain-text song file and renders stereo WAV audio — from four notes with an automatic band to fully arranged instruments, patterns, sections and effects.

Because a song is plain text, it lives happily in version control, diffs cleanly, and can be written in any editor. MTL makes sensible musical choices for you — tempo, bars, an intro and an ending, a drummer — and lets you override every one of them.

This website exists so anyone can try MTL without installing Python. Share a link, and the person on the other end can render your song on their own device.

How this site runs Python

01 · RUNTIME

Pyodide

CPython compiled to WebAssembly, started in a background Web Worker so the page stays responsive.

02 · LIBRARIES

NumPy + SciPy

The same audio math libraries MTL uses locally, loaded as WebAssembly builds.

03 · SOURCE

GitHub, live

The mtl/ package and examples/ are fetched from the repository's main branch on each visit.

04 · OUTPUT

WAV in memory

The rendered file is read from the virtual filesystem and handed to your browser to play or download.

Good to know

  • First load is the slowestPython, NumPy and SciPy are about 30 MB; your browser caches them for next time.
  • Rendering happens on your deviceLong, densely arranged songs take longer than on a desktop Python install — use Stop if one runs away.
  • Nothing is uploadedYour songs stay in your browser. "Copy link" puts the song text in the URL itself.
Made with wish4