Stoatworks Labs

Marbling

Paper marbling with your clip's colours as the inks, for Resolume

Betav0.1.1Plugin & ModuleC++ / GLSL
Marbling — Paper marbling with your clip's colours as the inks, for Resolume
No screenshot. This one's configuration inside another application.

What it does

An FFGL effect for Resolume Arena and Avenue, SW Marbling. The clip is the first ink on the bath, and it keeps playing; each trigger is the next step of a marbler's recipe, first the drops, then the combs. A drop's ink is the clip's colour where it lands, so the palette is your clip's.

Each tool is a closed form from Lu, Jaffer, Jin, Zhao and Mao's "Mathematical Marbling" (2012): a drop pushes everything around it outwards by the square root of rho squared plus r squared, a tine drags the ink along it and less with distance, a comb repeats the tine, and wavy and circular combs and a vortex bend it. Every one keeps area exactly, so no ink is created, lost or mixed, and the edge between two inks stays sharp however many strokes cross it. Each pixel is traced back through the newest strokes exactly, every frame.

Onsets from the music (through the fleet's earshot, Resolume's own FFT by default), each quarter of Resolume's bar, or a button fire the steps. On Resolume's FFT each of its 375 Hz bands is shared among the plugin's four onset bands, so the kick's band, 40–160 Hz, hears its part of the lowest (from v0.1.1). When a recipe is finished Auto Paper lays a fresh sheet on the next trigger after the last stroke ends, so the finished pattern is always seen whole. About 0.5 ms a frame at 1080p on an Apple Silicon Mac.

  • Seven marblers' recipes: Stone, Suminagashi, Gelgit, Chevron, Nonpareil, Bouquet, French Curl
  • The clip's own colours as the inks, and the clip playing on under them
  • Every drop and comb exactly area-preserving: no ink thinned, blended or blurred
  • Triggered by drum onsets, Resolume's beat, or a button
  • Drop size and rate, tine spacing, depth and stroke speed
  • Alpha as ink density: a clear part of the clip stays clear wherever the comb takes it
  • Universal macOS bundle and Windows x64 DLL

Where it stands

v0.1.1, and early days. v0.1.1 makes the kick's band, 40–160 Hz, fire on Resolume's own FFT. Measured in Arena 7.29.0 on a Mac, Resolume's 64 bands are 375 Hz wide, from 0 to 24 kHz; v0.1.0 read them as narrower, so its lowest band never got any of them and every kick came through the band above. With Arena's demo drum loop playing, the kick band now fires about five times a second, where v0.1.0's never fired; the pattern moves about as often as before, because a kick that fires two bands is one trigger. It's measured by an offline harness driving the plugin's own code on an Apple Silicon Mac, at two rasters and on Apple's software renderer: a drop's map matches the paper's closed form to 2.8e-4 of a pixel, a block of the frame keeps its area through six stacked tools to 2.1e-4, a comb drawn back along its own tines puts every measured pixel back to a thousandth of a pixel, and through a whole Nonpareil no pixel is a blend of inks or a colour that was never dropped. It catches 23 models that are wrong on purpose and 27 one-character sabotages of its own code, and every control changes the picture. In Resolume Arena 7.29.0 on a Mac, over a test card, it shows its controls with their defaults, and its button, the Beat trigger and every control did what the harness says; in 7.27.1 on Windows (a software renderer, no GPU) it registers, shows the same controls and renders. And Onsets on Resolume's own FFT, the default trigger, fired its drops in Arena on the Mac with Arena's demo drum and bass loops playing; it has never opened a live audio input. The combs' depths and sharpness, the drop sizes and the speeds are chosen, since no source gives them. The combed patterns fill the screen with fine high-contrast stripes, which can trigger seizures in people with photosensitive epilepsy; on Resolume's 33 demo clips it never went over three flashes a second. There's a user guide and a browser demo, but no presets. Try it in your own rig before you trust it in a show.

Watch it running

Marbling video thumbnail

Nothing loads from YouTube until you press play.Watch it there instead