A live-performance plugin host for Linux -- for keyboards and for audio. Point your keyboards at it and it plays instruments; plug a microphone, a guitar or a hardware synth into your audio interface and it runs them through effects. Build a sound for each one your show needs, and change sounds from the keyboard or a footswitch while you play -- or from a tablet on a music stand, with no app to install.
And not just the sounds: any plugin you have loaded can be opened and fully operated from that tablet, laptop or phone -- its own interface, mirrored, with every knob, drawbar and menu live under your finger. Pull a drawbar on the tablet and the organ on stage moves.
StageRig exists because the live hosts keyboard players rely on -- MainStage, Gig Performer, Cantabile, Camelot -- have no Linux version. It hosts VST3, CLAP, LV2 and LADSPA plugins natively, Windows VST3s and CLAPs bridged with yabridge work like any other plugin, and it plays sampled instruments itself.
-
MIDI inputs and audio inputs, side by side. An input is a keyboard (a MIDI device and channel) or an audio source (one or two of the interface's input channels). Each has its own 128 sounds, selected by MIDI Program Change while you play: Upper and Lower manuals change independently, and a vocal mic or a guitar steps through its effects from a footswitch the same way. Group sounds by kind -- organs, strings, brass -- to find things quickly.
-
Keyboards play instruments, with splits and layers: per-instrument key range, velocity range, velocity curve, transpose, gain and pan, and the MIDI channels each instrument takes notes from, so one sound can sort a multi-channel keyboard or a MIDI file into its parts.
-
Program changes never cut a note. Keys you are holding and the sustain pedal keep sounding on the sound you left while the new one plays, and then ring out over a release tail you set (4 seconds unless you change it), so a pad held over the change carries on. On by default; Options can turn it off.
-
Sampled instruments, built in. Nothing to install: StageRig plays these formats itself, and a library is added from the
.zipit was downloaded as.Format Files Played by SFZ a .sfzfile and its recordings (WAV, FLAC, AIFF, Ogg)the built-in sampler (sfizz), read from disk as you play Decent Sampler a .dspresetfile and its recordings, or a packed.dslibrarythe built-in sampler, turned into SFZ as it loads, its envelope and volume knobs kept SoundFont one .sf2or.sf3filethe built-in General MIDI player (FluidSynth) Instruments are sorted by kind of sound -- pianos, organs, strings, woodwinds -- from their names, the same way for every library, and an instrument recorded in several playing styles is listed once.
To start with, StageRig Sounds has 44 free instruments in six packs -- pianos, electric pianos, bass, guitar, drums, an orchestra, organs and mallets -- each one tested in StageRig, and free to gig and record with, plus a seventh pack of free synths and effects. They are a separate download, so StageRig itself stays small: it offers them the first time it starts, and under Options ▸ Download sounds and plugins... after; or
sudo apt install stagerig-sounds(or dnf, or pacman, from the same repository as StageRig) for everyone on the computer.More free sounds. FreePats and SFZ Instruments list free SFZ libraries by kind of sound, and Pianobook has hundreds of free Decent Sampler instruments; StageRig plays all of them itself. Many of the big makers give away a library too (Spitfire's BBC Symphony Orchestra Discover, Native Instruments' Komplete Start), played through their Windows plugins via vstenv. The manual's Free sampled instruments and Free sounds from the big makers say how to add each, and what to check in its licence.
-
Ready sounds. A whole sound in a file -- instruments, splits and layers, effects, levels, knob mappings -- opened into any sound from + Add instrument ▸ Ready sound, sorted by kind. StageRig Sounds comes with 43 of them, set to one loudness: a concert grand in a hall, a string section across the keyboard, a Rhodes with a bass split, a church organ. Save any sound as one of your own, and open it into another setup or give it to another player. A sound names the plugins it needs and says what is missing -- and offers to install a missing free plugin through the system's package manager; a reverb it uses falls back to another (Dragonfly's, or Calf's where a Linux has no Dragonfly).
-
The community library. Sounds other players shared, browsed from the same menu (Ready sound ▸ Community library...) or at stagerig.org/library, each saying what it plays through and what this computer lacks. Fetch one into the sound you are on, or keep it for later; share your own with a Google sign-in. Everything there is public domain (CC0). A Cloudflare Worker keeps the index and the files and answers a small JSON API; the client is
Source/Library.cpp, and the Worker, the page and the API's description are in the stagerig.org repository underlibrary/. -
Separate pad boxes, knob boxes and footswitches count as part of a keyboard: an Akai LPD8's knobs or a MIDI footswitch are learned, mapped and used exactly like the keyboard's own.
-
MIDI devices too. An instrument can be a hardware synth or a lighting controller on a MIDI port -- with patch recall when the sound is selected, and a synth's audio back through the interface into the sound's effects and outputs.
-
Every instrument is a chain. MIDI effects (arpeggiators, chord generators) before it, audio effects after it, and any MIDI device that should play along.
-
Audio runs through effects. An audio input's sounds are effects with an input trim -- reverb on the vocal for the ballad, drive on the guitar for the solo -- and a level meter on the laptop and on the tablet. Effects get MIDI too, so a vocoder or harmoniser plays from the keyboard.
-
Insert effects per instrument and per sound.
-
Outputs on the interface's channels. Each input lands on an output -- a pair of the interface's output channels -- so the keyboards, the vocal and the guitar can reach the desk on separate channels; every output has a master effects chain and a volume you can put on a pedal.
-
MIDI learn for any plugin parameter, with suggested mappings from parameter names and reusable per-plugin templates.
-
Every plugin in its own process. A plugin that crashes or hangs takes only itself down; the rest of the rig plays on, and the plugin is restarted by itself with its state.
-
Built to stay up. A watchman restarts StageRig itself if it ever dies, back on the same song and part; a safety guard on every output stops broken audio and anything over full scale; and a pre-show check lists everything that could go wrong before the first song.
-
Built for low latency: a native PipeWire/JACK client, 128-sample blocks by default, parallel plugin loading, and a late-block counter you can watch.
-
Loop a passage on a keyboard from a footswitch, in whole bars at the rig's tempo, and play over it.
-
Songs have parts: verse, chorus, solo, each holding what every keyboard plays, down to which instruments of a sound are on, how loud, and which effects are in. One sound carries a song in ten parts, and one B3 serves every song with the amp in or out. Stepped from a footswitch, the panel, the tablet or the keyboard's own patch buttons; a backing track steps through them itself, and a part can also mute a part or cue the lights.
-
Built-in MIDI effects: an arpeggiator, a chord, a scale, a run and a big band (each key plays the chord on that step of the key, voiced as you set it), following the song's key; a humanizer; and a phrase player that plays a short MIDI file from each key. Nothing to install.
-
A performance view: each keyboard's sound in large type, with a front panel under it -- level, pan, and the page of eight knobs the keyboard's own knobs are on, the same names and values as on the keyboard's screens and the tablet, with the page arrows.
-
The keyboard's knobs follow what you play: eight knobs turn the instrument in play, in pages, with buttons for the next page, instrument and sound, taught by turning and pressing them. NKS-ready plugins (SWAM, Super 8, BBC Symphony Orchestra and the like) bring their makers' knob pages, read from their NKS presets, on any keyboard. Knob layouts name a plugin's knob pages and colour its keys (keyswitches, a kit's pads) and are files you can share. A Novation Launchkey MK4's screen shows the sound and the knobs; a Komplete Kontrol S MK2/MK3, A or M names the sounds on its screen and chooses them with its track buttons; a Komplete Kontrol S-series MK1's light guide shows each instrument's keys and its nine screens the sound and the knobs, on Linux, with nothing from Native Instruments installed.
-
MIDI 2.0 keyboards at full resolution: a keyboard that speaks MIDI 2.0 is heard as MIDI 2.0, so mapped knobs and pedals move plugins smoothly rather than in 128 steps; the plugins still get MIDI 1.0. A keyboard that speaks MIDI-CI Property Exchange (a Korg Keystage, say) shows the sound and knob names on its screen.
-
A pedal for a layer or an effect: mappings can switch an instrument or an effect, or be its level; one knob can move several things.
-
Backing tracks follow the song's tempo and key: find the tempo in the audio, and the files stretch and transpose with the song.
-
Record the gig: every output to WAV as it left for the desk, and the keyboards to a MIDI file, in a dated folder beside the setup.
-
Ableton Link: the tempo and the beat shared over the network with Live, Bitwig, DJ software and loop apps; Play waits for the shared bar.
-
A global tempo with tap tempo and MIDI clock out to hardware, so tempo-synced delays and arpeggiators have something to sync to. Tap it in the toolbar or from a footswitch.
-
An on-screen keyboard for building a setup without a controller attached.
-
Tablet control -- the whole plugin, not a remote control for it. A built-in web app changes sounds from a music stand, and opens any loaded plugin's own interface on the tablet, laptop or phone: the real editor, mirrored and fully interactive, so you can reach a Kontakt library's every page or a B-3X's drawbars without walking back to the computer. Nothing to install -- scan the code or type a short one, and add it to the home screen if you like. StageRig can serve its own wifi network when the venue has none.
-
Backing tracks. A song can carry audio files -- a full mix, or drums, bass and pads apart, plus a click and cues for the in-ears -- each on its own output, and MIDI files whose parts each play on what you choose: the built-in General MIDI player (FluidSynth), one of your own sounds by keyboard and by name (Upper: Big Strings, kept playing whatever Upper itself is on), or a MIDI device. A piano roll edits the notes. With a count-in and a click for the in-ears, started and stopped from a footswitch, the laptop or the tablet, where parts can be muted from the stand. Mark its parts on a timeline of the files' waveforms and notes, jump between them in time (at the end of the part, or on the next bar or beat), and vamp an intro until a pedal lets it go on. Tempo-synced effects lock to the track.
-
Charts on the stand. Attach a lead sheet, a scan or a chord chart to a song -- PDF, image, text or ChordPro -- or type a chord chart in the app, with the page beside the text -- and the tablet shows it, turning PDF pages a tap at a time and following the set list from song to song. Files are kept in a folder beside the setup, so the two travel together.
Read the user manual for everyday use, or press Help
in the toolbar to read the same manual inside the app. If something goes
wrong on stage, its When something goes wrong
section has a step-by-step for each symptom, and everything that happened is
in ~/.config/StageRig/stagerig.log. The rest of this file is for building
from source and for how it works inside.
Requires Linux, JUCE 8 (fetched as a submodule) and a C++17 compiler. Licensed under the GPL-3.0.
The live hosts keyboard players buy -- Gig Performer, Cantabile, MainStage -- run every plugin inside their own process, so a plugin that crashes crashes the show; Gig Performer's support page and Cantabile's author say as much. StageRig was built the other way round, and then tested by pulling the plugs:
- A plugin crashes: it runs in its own process, so it takes only itself down, and is started again at once with its saved state on the sound it was in. Three crashes in a minute and it is left off, with a Reload button.
- A plugin hangs or runs late: five seconds without audio and it is restarted. One that misses its deadline is silent for that block while the rest of the rig plays on -- no click through the PA -- and the note-offs it missed reach it with its next block.
- A plugin sends out garbage: every output passes a safety guard; a sample that is not a number becomes silence, and anything over full scale is turned down at once and let go over a tenth of a second.
- StageRig itself stops: a watchman starts it again within a second, on the same song, part, sounds and tempo, and says so in the status bar.
- A keyboard or MIDI interface drops out: what it held is let go at once; when it is back it is picked up by name, whatever port it gets this time, knobs, screens and lights included.
- The audio interface drops out, or the sound system restarts: StageRig reconnects within about two seconds, inputs included, never saves a stand-in device over your choice, and leaves a stuck input out so the output plays on.
The manual's When something fails on stage has each of these in full, and Options ▸ Pre-show check... lists, worst first, everything that can be known before the first song.
| Term | Meaning |
|---|---|
| Input | A keyboard (a MIDI device plus an optional channel filter), an audio input (device channels, with a MIDI device for program changes and pedals), or the Backing track -- the songs' MIDI files, which play instruments as a keyboard would. Each input has its own current sound. Two inputs may share one device (e.g. channel 1 = Upper, channel 2 = Lower). |
| Sound | One of 128 per input, selected by MIDI Program Change (on that keyboard only), a click, a song, a part, a footswitch or the tablet. Holds instruments and MIDI mappings. |
| Instrument | One instrument inside a sound -- a plugin, a MIDI device (hardware synth, lights) on a port, the built-in General MIDI player, or another keyboard's sound -- with enable, gain, pan, transpose, key range, velocity range, velocity curve and the channels it takes notes from, plus its MIDI chain and effects. Key and velocity ranges make splits and touch-switched layers; the curve matches a controller's feel to a library. |
| Effects | Ordered effects with bypass. Each instrument has its own (MIDI chain → instrument → effects → gain), the MIDI chain holding MIDI effects and sends to MIDI devices; the sound's SOUND EFFECTS work on the sum of all instruments. Effects receive the same MIDI as their instrument. |
| Mapping | A CC / pitch-bend / aftertouch message → one parameter on any instrument or effect, scaled between min and max. Optionally also passed through to the plugin. |
| Output | A pair of the interface's channels with a master effects chain and a volume. Every input lands on one; the default setup has one, "Main", on channels 1-2. |
| Song | What to load for one number: a sound per input, a tempo, stage notes, charts, and its backing track -- audio and MIDI files. A MIDI file's parts (its channels) each play on an instrument of the song's sound on the Backing track input. |
| Part | A stretch of a song -- intro, verse, chorus -- and what every keyboard plays in it, with any cues. Stepped by Next part, a footswitch, the tablet, or (with the keyboards' program changes pick the part on) the keyboards' program changes. With a backing track, each part starts at a time on it; a part asked for lands at the end of the part in play, or on the next bar or beat, as the song sets. A part can vamp. |
| Set list | Songs in order, stepped from a footswitch or the tablet. (Called a set list everywhere, because in Ableton Live a Set is the file.) |
| Setup | The whole document (inputs, outputs, sounds, songs, set lists, plugin states). Saved as *.stagerig.json, with the songs' charts and track files in a .charts/ folder beside it. |
If you know Ableton Live: a Live Set is StageRig's setup file; a MIDI track with its device chain is an input with the sound it is on; a Rack's zones are a sound's instruments with their key and velocity ranges; a scene per song is a song; locators are sections. The manual has the full table (If you know Ableton Live).
A program change leaves what you are holding to the previous sound: keys down and the sustain pedal keep sounding there until you let go, and then a configurable release tail lets it ring out, so a pad held under the change or a pedal down over the bar line is never cut. Every used sound is loaded at start and stays loaded, so changes are instant; on a computer short of memory, Free up memory unloads a sound once you change away from it.
Add StageRig's package repository once, and every new release arrives with
your system's ordinary updates (apt upgrade, dnf upgrade, or the desktop's
update manager). Packages are for x86-64. They install StageRig and
stagerig-plugin-host into /usr/bin, plus a launcher entry and the icon.
# Debian / Ubuntu / Linux Mint
sudo install -d /etc/apt/keyrings
curl -fsSL https://dguedry.github.io/stagerig/key.gpg | sudo tee /etc/apt/keyrings/stagerig.gpg >/dev/null
echo "deb [signed-by=/etc/apt/keyrings/stagerig.gpg] https://dguedry.github.io/stagerig/apt stable main" \
| sudo tee /etc/apt/sources.list.d/stagerig.list
sudo apt update && sudo apt install stagerig
# Fedora
sudo curl -fsSL -o /etc/yum.repos.d/stagerig.repo https://dguedry.github.io/stagerig/stagerig.repo
sudo dnf install stagerig
# Arch Linux, Manjaro, EndeavourOS
curl -fsSL https://dguedry.github.io/stagerig/key.asc | sudo pacman-key --add -
sudo pacman-key --lsign-key 0584CCE943945336497166DDE3745FD7E8DEB0F3
printf '\n[stagerig]\nServer = https://dguedry.github.io/stagerig/arch\n' | sudo tee -a /etc/pacman.conf
sudo pacman -Syu stagerig pipewire-jackThe repository is signed: apt checks it against the key saved above, dnf asks you to accept the same key the first time, and pacman checks every package against the key it was given. It holds the last ten releases. On Arch it also carries noVNC and websockify, which the tablet uses and Arch's own repositories don't have.
Verified on Ubuntu 24.04, Linux Mint 22.3 (Cinnamon) and Fedora 43, with native LV2/VST3 plugins and Windows plugins bridged through vstenv.
Without the repository: each release's .deb, .rpm and Arch .pkg.tar.zst are on the
releases page.
Installed this way, StageRig does not update by itself.
# Debian / Ubuntu
gh release download --repo dguedry/stagerig --pattern '*.deb'
sudo apt install ./stagerig_*_amd64.deb
# Fedora
gh release download --repo dguedry/stagerig --pattern '*.rpm'
sudo dnf install ./stagerig-*.x86_64.rpmStageRig ships no plugins but the General MIDI player. For sounds to play straight away, add StageRig Sounds from the same repository: 44 sampled instruments, 43 ready sounds made from them, and the reverbs they play through. Installing it downloads the instruments (about 3.2 GB) and checks them, and brings the free plugins below.
sudo apt install stagerig-sounds # or: sudo dnf install stagerig-sounds
# or: sudo pacman -S stagerig-soundsThe free plugins, good enough to gig with -- Surge XT, OB-Xf, setBfree, ZynAddSubFX, AVL Drumkits, Dragonfly Reverb, LSP, x42, Calf, Guitarix, ZamAudio -- one by one (OB-Xf is packaged only on Arch: elsewhere, its Linux download):
sudo apt install surge-xt setbfree zynaddsubfx-lv2 avldrums.lv2 dragonfly-reverb \
lsp-plugins-lv2 x42-plugins calf-plugins guitarix-lv2 zam-plugins
# Arch Linux
sudo pacman -S surge-xt ob-xf-lv2 setbfree dexed zynaddsubfx avldrums.lv2 dragonfly-reverb \
lsp-plugins-lv2 x42-plugins-lv2 calf guitarix zam-plugins-lv2The manual's Good free plugins to start with says what each is for, gives the Fedora line, and lists the ones worth fetching from their own sites.
Every push also builds both packages as workflow artifacts under
Actions, if you want a
build from main rather than the last release.
For plugins you will also want calf-plugins (or any LV2/VST3 instruments),
pipewire-jack for the low-latency audio path, and
yabridge for Windows plugins.
vstenv sets up the Wine side and bridges
Windows plugins (Native Instruments, Steinberg, iZotope and others) into the
folders StageRig scans, if you would rather not configure Wine and yabridge by
hand.
Requirements (Ubuntu 24.04 names): build-essential cmake ninja-build libasound2-dev libjack-jackd2-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libfreetype-dev libfontconfig1-dev libgl1-mesa-dev ladspa-sdk.
On Arch: base-devel cmake ninja alsa-lib jack2 libx11 libxrandr libxinerama libxcursor freetype2 fontconfig mesa ladspa (or pipewire-jack for jack2).
git clone --recurse-submodules https://github.com/dguedry/stagerig.git
cd stagerig
# if you cloned without --recurse-submodules:
git submodule update --init --depth 1 external/JUCE
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/StageRig_artefacts/Release/StageRig # opens the last setup
./build/StageRig_artefacts/Release/StageRig my.stagerig.json
cmake --install build --prefix ~/.local # optional: binaries, launcher entry and iconSee the user manual: inputs and keyboards, sounds, instruments, splits and layers, effects, MIDI mappings, the on-screen keyboard, audio settings and latency, live checklist, troubleshooting and the files StageRig uses.
The short version: Audio... to pick an output, Plugins... to scan for plugins, select an input and give it a MIDI device, click a sound, press + Add instrument..., then Save As....
Perform gives the window to the performance view: each keyboard's sound in letters a foot high, and under it the page of knobs the keyboard's own knobs are on.
With the editing panes shown, Stage keeps the performance view above them.
An instrument's Knobs window is what the keyboard's eight knobs turn on it, in pages; the layout is the plugin's, so it is the same in every sound.
Your keyboards lists each keyboard an input plays from and how StageRig talks to it.
Parts and backing track... under the songs list opens the song's window: its parts, and below them its backing track's audio and MIDI files. Each audio file has its output and level; each part of a MIDI file says what plays it -- here the keys, bass and drums on the General MIDI player and the strings on one of your own sounds. Above, the song's parts on a timeline of the files: the intro vamps until a pedal lets it go on, and the chorus puts Upper on its strings by itself.
Edit notes... opens the MIDI file in a piano roll, part by part.
Tablet in the toolbar starts a small web app on your network, for picking sounds from a music stand instead of the laptop.
The Sounds tab is the same page's other half -- every sound on every keyboard, grouped, with a GUI button per input:
Scan the square code with the tablet's camera, or type the address and the six-character code. The code survives a restart, so a home-screen shortcut keeps working, and Options ▸ Print the sound list (for the stand)... puts the same scannable code on the printed sound sheet.
The tablet opens on the set list: the song you are on in large type with what each keyboard is playing, the rest of the running order underneath, and a search once there are enough songs to need one.
GUI beside each input's sound puts that plugin's own interface on the tablet -- not a picture of it, but the working editor:
Everything works: pull those drawbars, kick the Leslie from slow to fast, open a menu, load a different patch. Input travels back to the plugin, so the tablet is a second screen and mouse for it rather than a remote with a fixed set of buttons. A laptop or phone on the same network does the same job -- it is a web page, so whatever you point at it is a full editor for every plugin in the rig.
That matters most for plugins nothing else can reach. StageRig used to offer faders you picked and labelled per plugin; they are gone, because they could not tell the truth. Kontakt's host-visible parameters are MIDI controller inputs -- values go in and nothing comes back -- so a fader on the tablet could drive an organ but never follow it when you moved a drawbar in the plugin itself. Mirroring the real editor sidesteps that, and needs no setting up per plugin: whatever the plugin shows is what you get.
A touch holds for as long as your finger does, so the plugin's own keyboard
plays properly -- one finger at a time, since the mirror is a single pointer. +/- and Fit to screen handle zoom, Move view
switches to panning and pinching, and Full screen hides the browser's address bar.
Taps arrive on the computer as real clicks, so the plugin window must not be
covered by another window there -- StageRig keeps it above everything else for
as long as a tablet is looking at it. Each plugin gets its own tab, named after the
sound. Needs x11vnc, websockify, xdotool and novnc, and works on
Wayland desktops as well as X11 ones -- StageRig and plugin editors are X11
windows, so they run through XWayland, which x11vnc reads and writes
normally. A Wayland session with no XWayland is the one case that does not
work, and StageRig says so rather than showing a black screen.
With a song selected, the Set list tab carries Play / Stop, the track's sections (tap one to go there when the current one ends, or End vamp ▸ to let a vamp go on), and Parts of the track -- the MIDI files' parts, each with what plays it, a Mute for the one you will play yourself tonight, and GUI when a plugin in the song's own sound plays it.
If the tablet cannot connect, the usual cause is a firewall on the computer rather than anything else; the desktop can still open the address itself, which makes it look like the tablet is at fault. Open the port for private networks only:
sudo ufw allow from 192.168.0.0/16 to any port 7777 proto tcp
sudo ufw allow from 10.0.0.0/8 to any port 7777 proto tcp
sudo ufw allow from 172.16.0.0/12 to any port 7777 proto tcp
No wifi at the venue? Create a wifi network makes the computer serve its own, which the tablet joins directly. StageRig asks once which wifi adapter to use and remembers it; a spare USB adapter lets the machine stay on its normal network at the same time. See the manual for the details.
Windows VST3s and CLAPs bridged with yabridge appear as normal plugins of that
format, and StageRig does not care how the Wine side was set up. yabridge
bridges both, so a Windows CLAP is scanned from ~/.clap/yabridge and hosted
like any other -- its own window and all.
vstenv is the easy way to get one: it
provisions its own Wine, installs each vendor's manager application (Native
Access, IK Product Manager, Steinberg Download Assistant, Audio Modeling
Software Center) and the products they deliver, and bridges the result into the
folders StageRig scans. A prefix it manages records which wine belongs to it,
and vstenv teaches yabridge-host.exe to read that record -- so the right wine
is used whatever starts the plugin, with nothing on PATH and nothing set in
the session. StageRig needs to do nothing special for it.
For a prefix set up by hand, StageRig also follows the older convention:
~/.local/bin goes first on a helper's PATH when a wine shim is
there, and variables from ~/.config/environment.d/*.conf (WINELOADER,
WINEFSYNC) are applied when the session lacks them. That matters because a
desktop launcher and a terminal do not always agree about the environment.
While a vendor's installer replaces a plugin file, the yabridge bundle briefly
points at nothing. StageRig reports that as "yabridge link points to a missing
file" rather than blacklisting the plugin; once the install finishes and
yabridgectl sync has run, scan again and the plugin comes back.
Every plugin runs in its own stagerig-plugin-host process. StageRig talks to
each one over a shared-memory block (audio, MIDI and parameter changes, one
block at a time, with two semaphores) plus a socket for everything that is not
real-time: loading, state, parameter lists, editor windows and notifications.
- A plugin that crashes takes only its own process down. The engine starts a fresh process with the saved state at once, up to three times a minute; past that the UI marks it red and its Reload button tries again.
- A host stuck inside the plugin's processing, alive but never answering a block, is killed after five seconds by a watchdog and restarted the same way.
- A plugin that hangs (a stuck editor, a bridge waiting on Wine) can't freeze StageRig: requests to it time out, and the audio thread waits for each process only until 85 % of the block period has passed. Late blocks are counted in the status bar as "N dropouts"; a late instrument is silent for that block, a late effect lets the sound past dry, and the note-offs and pedals a busy plugin missed reach it with its next block.
- Plugin editors are windows of the host process, so they survive independently of StageRig's UI. Instruments of one sound render in parallel, one process per core; effect chains run in order.
- Plugin scanning also happens in helper processes (
stagerig-plugin-host --scan), so a crashing plugin can't kill the scan.
The helper is looked for next to the StageRig executable, then in the build
tree, then via $STAGERIG_PLUGIN_HOST.
Source/Model.*– the document (Setup → InputDef → ProgramDef → SlotDef / MappingDef) and JSON persistence.Source/PluginHost.*– plugin formats, known-plugin list, out-of-process probing, mapping templates.Source/PluginScanner.*– app-owned background scan;Source/PluginManagerComponent.h– the Plugins window.Source/MappingSuggestions.*– per-plugin mapping templates and name-based CC suggestions.Source/PluginIcons.*– plugin icons: Windows PE icon resources, VST3 snapshots, generated badges.Source/SfzSynth.*,Source/SamplerPluginFormat.*– the built-in sampler (sfizz) and its instrument list;Source/DecentSampler.*– Decent Sampler presets as SFZ.Source/Engine.*– audio/MIDI engine: device management, program (sound) loading and switching, MIDI routing, mappings, learn.Source/RemotePlugin.*– host-side proxy for one plugin process (spawn, control channel, real-time block exchange).Source/Ipc/Protocol.*– shared-memory layout and framing shared by both executables.Source/PluginHostProcess/PluginHostMain.cpp– thestagerig-plugin-hostexecutable.Source/MainComponent.*– the UI (inputs, sounds, slots, mappings panels).Source/KeyboardPanel.h– on-screen keyboard and test controllers.Source/ParamPicker.h– searchable parameter picker;Source/AudioSettingsComponent.h– the Audio window.Source/LowLatency.*– PipeWire JACK preload, quantum control, realtime checks.Source/Main.cpp– application entry.
ctest --test-dir build
# Optionally exercise a specific VST3 (e.g. a yabridge-bridged plugin) through the engine:
STAGERIG_TEST_VST3="$HOME/.vst3/yabridge/Kontakt 8.vst3" ./build/EngineTest_artefacts/Release/EngineTestAll plugin buses are kept active and rendered into a full-size buffer; only the main bus is mixed. Disabling aux buses makes JUCE pass null channel pointers, which crashes plugins that write to them regardless (Kontakt via yabridge).
Settings live in ~/.config/StageRig/.
StageRig is meant to be played live, so it goes for the smallest safe block:
- It loads PipeWire's JACK client library itself (
pipewire-jack, packagepipewire-jackon Debian/Ubuntu), so it does not need to be started withpw-jack, and it defaults to the JACK device type at 48 kHz. That makes StageRig a direct node in the PipeWire graph; the ALSA type goes through PipeWire's ALSA emulation with its own buffering and resampling. - Audio... has a LEVEL AND LATENCY section: the buffer size to ask
for (default 128 samples = 2.7 ms at 48 kHz; 64 if the machine is quiet),
Make the whole system use this buffer size while StageRig runs, and the
Computer volume of the chosen output (PipeWire's own volume for it, which
a new USB device often starts well below 100%). With the whole-system box on,
StageRig forces the PipeWire graph to that quantum (
clock.force-quantum) and restores the previous value when it quits or the box is unticked, so the desktop'smin-quantum/default.clock.quantumsettings do not get in the way. Every change applies at once; Reopen audio reconnects after the sound system restarts. The status bar shows the block size actually delivered and the resulting latency. - Another application can hold the clock. Bitwig Studio, for example,
forces
clock.force-quantumto its own block size every few seconds while it runs; StageRig then reports clock held by another app in the status bar. Close that application or set its block size to StageRig's. - Realtime scheduling. Small blocks only stay glitch-free when the audio
thread can run at realtime priority. Check
ulimit -r: if it prints 0, add yourself to thepipewiregroup (sudo usermod -aG pipewire $USER, then log out and back in) or otherwise grantrtprio/memlockin/etc/security/limits.d/. The Audio dialog reports whether realtime scheduling is available. - Plugins load in parallel (half the machine's threads, 4 to 12, by default;
parallelLoadsin~/.config/StageRig/StageRig.settingschanges it), so preloading fills a setup quickly. Wine-bridged plugins load in parallel too (parallelBridgedLoads, default the same); two Kontakts starting together on a cold prefix both come up in the time one takes. If a machine stalls on concurrent Wine start-ups,bridgedColdStartSolo=1starts the first bridged plugin alone when no wineserver is running yet. - Every plugin runs in its own process; a plugin that does not finish its block in time is silenced for that block and counted as late in the status bar, so one slow plugin cannot stall the whole rig.
Tag a version and push it; the Packages workflow builds the .deb and
.rpm with that version, runs the tests, creates the GitHub release with
generated notes and attaches both packages:
git tag v0.2.0 && git push origin v0.2.0Local packages: cmake --build build && (cd build && cpack -G DEB) or -G RPM
on a machine with rpm-build.
Issues and pull requests are welcome. Please run the tests before opening a PR:
cmake --build build && ctest --test-dir buildTwo things worth knowing before changing the engine: nothing may block the
audio thread (plugin calls go through the shared-memory block with a deadline),
and nothing may block the message thread on a plugin (loading happens on the
loader pool, and every plugin call from the UI has a timeout). Tests/EngineTest.cpp
runs real plugins through real helper processes and is the place to add
coverage.
GPL-3.0-or-later. See LICENSE.
JUCE is included as a submodule and carries its own licence: JUCE 8 is offered under the AGPLv3 or a commercial licence, and StageRig uses it under the AGPLv3. GPLv3 section 13 allows the two to be combined, so a StageRig binary is distributed under the GPLv3 for StageRig's own code and the AGPLv3 for JUCE's. The CLAP headers are MIT-licensed. Ableton Link is included as a submodule under its GPLv2-or-later licence (it is also offered commercially by Ableton), together with the standalone Asio library it uses, under the Boost Software License. The Komplete Kontrol MK1 screens' letters come from the 16-segment font in cabl (Copyright (C) 2015 Vincenzo Pacella, MIT licence).
Packaging for distributions: see docs/PACKAGING.md.











