Audio JACK
Context: $ARGUMENTS
Quick start
- Start a JACK server: → Step 1 (
jackctl.py start) - List ports / connections: → Step 2 (
jackctl.py ports) - Connect two clients: → Step 3 (
jackctl.py link) - Check buffer size / rate / CPU: → Step 4 (
jackctl.py status) - Measure round-trip latency: → Step 5 (
jackctl.py latency) - Record N ports to WAV: → Step 6 (
jackctl.py record) - Send audio over the internet: → Step 7 (
jackctl.py jacktrip)
When to use
- User wants guaranteed low-latency routing between pro-audio apps that speak the
JACK client API (Ardour, Reaper, Carla, SuperCollider, Pure Data, Bitwig, REAPER).
- User wants to bridge multichannel audio across the internet with JackTrip.
- User wants explicit control over period size / number of periods / sample rate.
- User's distro runs PipeWire — the libjack shim still answers all these commands,
but see Gotchas.
Not for: generic Linux desktop routing (use audio-pipewire), macOS default-device
changes (use audio-coreaudio), Windows default-device changes (use audio-wasapi).
Step 1 — Start a JACK server
jackd accepts a single backend driver after -d. This wrapper picks a per-OS
default (alsa on Linux, coreaudio on macOS, portaudio on Windows).
uv run ${CLAUDE_SKILL_DIR}/scripts/jackctl.py start \
--rate 48000 --period 256 --nperiods 2
Force backend + device:
uv run ${CLAUDE_SKILL_DIR}/scripts/jackctl.py start \
--backend alsa --device hw:0 --rate 48000 --period 128
Typical period / nperiods:
| Scenario | --period | --nperiods |
|---|---|---|
| Live performance, PCIe / Thunderbolt card | 64–128 | 2 |
| Tracking / monitoring, USB class-compliant | 128–256 | 3 |
| Mixing, offline | 512–1024 | 2 |