VOLTERGEIST for VCV Rack
This page is plugins/vcv/README.md from the repository.
A VCV Rack 2 module that receives voltergeist frames over UDP and plays them out as control voltages and gates, on the shared clock, inside Rack's engine. No MIDI in between: float resolution, gates on the exact sample.

The panel (10 HP)
- Display: the UDP port, the stream's name from its map (and "n/m" when several streams are heard); clock drift in ms (or "clock not set"); lost and late counts.
- LINK light: green ok, yellow late, red lost in the last 2 s. CLOCK light: lit when the clock is set.
- DELAY: the playout delay, 10 to 200 ms, default 40.
- STREAM: steps through the samples streams heard in the last 5 s.
- CV OUT 1 to 8, each with an activity light; POLY carries up to 16 channels on one cable; GATES carries the events stream (a trigger is a 1 ms 10 V pulse, a gate or note on is 10 V while on).
- Port names and tooltips take the channel names from the map ("CV 1: pitch").
Right-click menu: UDP port (default 9100), volts when a channel's unit is not V (0 to 10, ±5 or 0 to 5 V, through the map's
min and max; unit V passes as volts), hold or interpolate on loss, receiver limits per channel (lo..hi, lo..hi@slew,
@slew; they win over the sender's map, SPEC.md 6.1), and which channel goes to each of the outputs 1 to 8. All saved in
the patch. The module answers PING with PONG, so a sender sets the clock, and sends a REPORT once a second.
Install
- Take the
.vcvpluginfor your machine (mac-arm64 for Apple silicon, mac-x64, lin-x64, win-x64). - Put it in Rack's user plugins folder, for example
~/Library/Application Support/Rack2/plugins-mac-arm64/on an Apple silicon Mac. If it came by AirDrop or a browser:xattr -d com.apple.quarantine <file>. - Restart Rack, right-click the rack, search "Voltergeist", add it. The display reads "9100 no stream". On a Mac, allow Rack to accept incoming connections when asked.
- Send to it from any machine:
node tools/send.mjs --to <address>:9100 --gate. Within a second the clock lights, LINK goes green, CV 1 to 4 carry the test signal (0 to 1 V) and GATES toggles every 250 ms.
If it does not load, Rack's log.txt (in the same Rack2 folder) says why.
How it stays up
The plugin it replaces in our tests (trowaSoft cvOSCcv) crashed Rack under load and at patch load, from unlocked queue reads on the audio thread and a module list walked without its lock. This module follows the opposite rules:
- One network thread per module owns the socket and decodes with the C99 core (
c/voltergeist.h); it never touches the module, the engine, expanders or ports. - Frames reach the audio thread through a fixed 512-slot lock-free single-producer single-consumer ring; when it is full the newest frame is dropped and counted.
process()takes no lock and allocates nothing.- The thread starts in
onAdd, after the patch settings load, and is stopped and joined inonRemoveand the destructor.
Tested (in containers)
- Unit tests: 1,224 checks, in plain, AddressSanitizer plus UBSan, and ThreadSanitizer builds: the ring across two threads (5,000,000 items in order, drops counted), playout timing (worst error 3.8e-7 V), events to the microsecond, limits, hold and interpolate, all 123 repository vectors, PONG and REPORT over a real socket.
- Stress: about 4 minutes each under ASan plus UBSan and under TSan, no reports: valid frames at about 5,600 a second with bursts, random bytes up to the largest UDP datagram, bit-flipped, cut and huge-length frames, wrong map ids, new stream ids every 40 frames, absurd clock offsets, a flood that overfills the ring, engine stalls, while modules were created and destroyed about 290 times with the senders running.
- VCV Rack Free 2.6.6 for Linux, headless: three runs, including the flood running before Rack started and loaded the patch; exit 0 every time.
- Not yet: a run in Rack on macOS.
Build
Containers only (docker/, build.sh, Makefile); test/run.sh runs the tests, test/sabotage.sh breaks five things
and checks each is caught, test/rack-headless.sh runs Rack for Linux headless. The panel SVGs are generated by
tools/panel.mjs.