Repository navigation
Releases
v0.1.0
A musical fountain for Resolume Arena and Avenue, as two FFGL plugins in one download: SW Fountain (FT01), a source that is a fountain at night lit by its own lamps, and SW Fountain Over (FT02), an effect that puts a projector where the camera is, so your clip lands on the same fountain's water and shows only where there is water. Nothing is drawn to the beat: the music opens solenoid valves and sets the pumps' heads, and the water is a ballistic object. Intact columns fly drag-free until Rayleigh's capillary instability pinches them into beads one fastest-growing wavelength apart; the beads feel quadratic drag and the wind; a mist bar sprays a curtain the wind carries and the gusts tear. So the water is late by its flight time (a 15 m jet fired on a kick tops out about 1.75 s after it), Lead opens the valves early by the model's own command-to-peak time so beat-fired jets peak on the beat, onset-fired water is always late, and louder is higher, as v²/2g.
What is verified
By tools/verify.sh on an M4 Max, macOS 26, against a fresh universal build, at two rasters (1280×720 and 320×180) and ten checks again on Apple's software renderer, driving the real plugin classes in a headless GL context and reading the water back off the pixels:
- Apex. A steady jet tops out at the head, v²/2g, to 0.07 px at 2, 4.5 and 7 m.
- Arcs. Every row of an arc's descending branch on the closed-form parabola, to 0.20 px; a shot rises as Vt − gt²/2 to 0.08 px, and a 40 ms shot at 60° reaches the basin on the frame 2V sin θ/g says.
- Breakup. Beads stand λ cos θ apart on an arc to 0.01 px over the span (Rayleigh's λ = 9.0144 a, re-derived in the harness with a different Bessel routine to 1e-11); the column ends at the closed-form breakup age to 0.08 px.
- Drag and wind. A 1 mm jet that breaks up early tops out at the closed-form apex under quadratic drag to 0.31 px; 908 beads in wind and gusts against an RK4 at 1/64 of the plugin's step to 7.7e-10 m; a puff from the mist bar drifts 35.82 px in a second against the wind's 36.00.
- Lead and lateness. With Lead the water peaks on the host's beat to 0.24 frames (0.21 at 12 m fired once a bar); with Fire On Onset a 15 m shot tops out 105 frames after the kick, its flight time, to 0.20 frames, Lead or no Lead.
- Over. The clip times the water in linear light to 0.0001 codes, black exactly where the source shows no water; Mix 0 returns the clip, alpha and all, bit for bit.
- Clock and state. A host clock at 4.99e8 ms renders identically to one at 0; a resize mid-run is bit-identical to a run always at the new size; a Fire press on a frame with no time in it fires once, on the next frame that has some.
- Eighteen deliberately wrong models each fail their check; 17 one-character mutants of the shipped GLSL and C++ are caught; all 18 controls of the source and 17 of the Over measurably change the picture; all 8 shaders compile through
glslc. - Render cost at the defaults (GPU time, median frame, on a machine shared with other builds): the source 0.99 ms at 720p, 2.06 ms at 1080p, 7.86 ms at 4K; the Over 1.02 and 2.19 ms.
- In Arena on macOS (7.29.0, M4 Max, 2026-11-18): both bundles load and register,
SW Fountain/FT01as a source andSW Fountain Over/FT02as an effect. Neither was put on a clip, so nothing has been seen rendering in Arena on a Mac. - Windows, in Resolume Arena 7.27.1 (win-lab, Mesa llvmpipe, no GPU, no sound device, 2026-11-18): the release workflow's DLLs, built from this code, load from Extra Effects, register as
SW Fountain/FT01/ source andSW Fountain Over/FT02/ effect, all 24 + 24 host controls match the declaration (the Over's 23 and Arena's Opacity), both render, and Arena's log stays clean. Every control the fleet's gate can test changes the picture: 16 of the source's and 16 of the Over's, Opacity included; Audio and Sensitivity need sound the box doesn't have, and Fire is a button the gate never presses. Arena's clock arrived in milliseconds (186,534.97 on the 60th frame) and the plugin's vote settled on them. Software rendering says nothing about a GPU or about speed.
What is not
- No real music has reached it in any host; the audio controls were checked with the harness's synthetic spectrum. Onsets listen to the lowest quarter of Resolume's 64 bins, on the assumption that kicks and snares sit there; where those bins sit in frequency hasn't been measured.
- Open questions, listed in the guide as known limits: should the mist follow the music, slowly (it runs steady; following the high band made the Over pulse with the hi-hats)? Is ln 9 a fair default disturbance? Should SW Fountain Over light the basin (it is black below the waterline)? Which unit does Arena's clock arrive in on a Mac (on Windows, 7.27.1 sent milliseconds and the plugin settled on them)?
- Chosen, not measured: how hard a nozzle is disturbed (Breakup), the valve and pump lags and the valve law, and all of the mist (drop size, settling, the updraft, spread, evaporation, the gusts) and the lamps. Rayleigh's regime only: real jets at fountain speeds break up sooner and messier because of the air. Face-on, with no depth.
- Only ever run on an Apple M4 Max and Mesa llvmpipe. No presets, no OpenFX port.
Flashing: nothing in it strobes. The lamps are steady and the jets are thin; the project video measures at most 0.5 flashes a second over the whole frame and 1.5 in any third of it, under the 3 a second guideline.
There is a user guide at https://stoatworks-labs.com/software/fountain/guide/ and a browser demo at https://fountain-demo.stoatworks-labs.com/ (the plugins' own C++ compiled to WebAssembly; a demo, not the plugin).
The macOS build is universal and Developer ID-signed and notarised (both the .dmg and the bundles in the .zip, signed by the release pipeline shortly after publication; if macOS refuses a download, it predates the signing, so download it again). The Windows build is unsigned, so SmartScreen warns once.