Tompouce

A terminal live-coding environment for music, aiming for Strudel parity, built in C.

The same patterns, and the web REPL's keys: Ctrl+Enter or Alt+Enter evaluates and starts. Ctrl+. or Alt+. stops.

Arpoon, playing with the editor and a live piano roll
Tompouce playing the Arpoon example song with a live piano roll under the editor

Install

Linux x86_64. The quickest start is the single-file AppImage from the latest release; the installer supports Arch/Omarchy, Debian/Ubuntu and Fedora from source.

git clone https://github.com/ekollof/tompouce.git
cd tompouce
./install.sh
~/.local/bin/tompouce

Add --no-browser for a terminal-only install. Sound banks are downloaded beside the binary and keep working offline.

First sound

Type this in the editor. Press Ctrl+Enter, Alt+Enter, or F5 to evaluate and start. Ctrl+. or Alt+. stops. Ctrl+P toggles play.

setcpm(108 / 4)
note("c4 e4 g4 c5").s('triangle').gain(0.4)

Press F2 and enter /tutor for 22 lessons. F1 is the keybinding reference.

Learn in the terminal

Strudeltutor is vimtutor for Strudel: 22 lessons inside the client. Press F2 and enter /tutor. Lesson 01 starts silent; change gain(0) to gain(0.5) and press F5.

Song mode

F7 plays saved track buffers in order, F8 holds the current track, and F9 is the set list. The same transport is available over MCP.

Hardware

midin() and midikeys() read an ALSA keyboard. MIDI clock, start and stop can drive other gear; following an incoming clock is not built. .osc() sends SuperDirt bundles. s('lv2:…') hosts an instrument in a confined worker, and .midi().carla(…) drives a managed Carla project.

Headless

Run the engine as a systemd user service on a Linux x86_64 machine and drive it from another shell with tompoucectl.py. Audio stays on that machine.

In the terminal

Jam together (experimental)