Skip to content

Releases

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 20:06

A fix for Marbling's default trigger on Resolume's own FFT. SW Marbling (MA01) is paper marbling for Resolume Arena and Avenue, as an FFGL effect: your clip's colours dropped as ink on water and combed into the patterns marblers make.

The lowest onset band, 40–160 Hz (the kick's), now fires on Resolume's FFT. In v0.1.0 it never did. Onsets still fired, because Marbling takes a trigger from any of its four bands and a kick reached the 160–640 Hz band, so the pattern moved to music in v0.1.0 too. Beat and the Trigger button were not affected, and nothing changes on an audio input chosen by name.

In Arena 7.29.0 on a Mac (this release's own notarised bundle, Arena's demo loops on the layer below, the Audio buffer on Composition), the lowest band fired 143 and 128 times in the plugin's 30-second log windows with Beat 001.wav playing, and 91 to 98 times with Bass 001.wav (a build before the tag: 161 and 176, and 96 to 99), where v0.1.0, run the same way, fired it 0 times in every window. Triggers per window did not change beyond the spread between runs: 225 to 256 on Beat 001.wav over the two v0.1.1 runs against v0.1.0's 239 and 250, and 200 to 213 on Bass 001.wav against 214 to 215. Every run changed the picture in 40 of 40 snapshot pairs on each loop and was still in silence.

  • Why the band was silent. The onsets come from earshot, the fleet's audio front end. Its old snapshot read Resolume's 64 bins as spread evenly to 22.05 kHz and gave each bin to the band holding the bin's centre. Bin 0's centre (172 Hz) is above the top of the 40–160 Hz band, so that band got no bin at all, and the whole of bin 0 went to 160–640 Hz.
  • What Resolume sends was measured. In Arena 7.29.0 the bins are linear, 375 Hz each, from 0 to 24 kHz (the audio engine's 48 kHz, whatever the clip's rate), and a new spectrum comes about every 43 ms.
  • The fix. v0.1.1 takes earshot 02306da, which shares each bin among the bands it overlaps: the 40–160 Hz band gets 0.32 of bin 0, 160–640 Hz the rest of it and most of bin 1. Marbling also passes Resolume's sample rate to earshot; its log reads "host audio at 48000 Hz: Resolume's FFT bins are 375 Hz each", and every 30 s of onsets it logs how many each band fired and the triggers they made.

What it changes on screen. On a kick, 40–160 Hz and 160–640 Hz now fire in the same frame, and the plugin's 50 ms merge makes them one trigger, as before. The new band adds triggers of its own only where the low end moves without the rest: a bass note, a low tom. In Arena the pattern moves about as often as before.

What is measured offline. A new harness check, --hostfft, builds 64 bins from 128 BPM drum loops the way Arena was measured to build them and writes them into the plugin's FFT buffer.

  • Kicks alone, at 48 kHz and at 44.1 kHz: the lowest band fired on 10 of 10 kicks, each time in the frame 160–640 Hz fired, and every kick triggered; the latest 62.5 ms after its kick, inside the limit of two spectra and a frame.
  • In a drum loop the lowest band fired on every kick and nothing else, and every hit triggered. Claps and hats alone triggered once each, and the lowest band never added a trigger of its own. Over a held bass no kick was missed.
  • Against v0.1.0's earshot the lowest band fires on 0 of 10 kicks, and the check fails.
  • Beat 001.wav made into those bins for 60 s: v0.1.1 made 7.50 triggers a second, v0.1.0 6.75 (11% more); Bass 001.wav 5.92 against 5.68 (4% more). Arena itself didn't show that difference (above): the model is of the bins' layout, not of everything Arena does to them.

Three new deliberately wrong models fail it (one of them a plugin that never passes Resolume's sample rate on, which also fails a case that sets the rate and every control in the same frame), making 23 in all; all 27 one-character mutants are still caught, and everything else tools/verify.sh measured in v0.1.0 passes unchanged. The audio-input path is untouched: a 12-second render fed through earshot's feed(), with the harness's music or Beat 001.wav, is identical to v0.1.0's bit for bit, so the release video, the flash survey and the browser demo stand as they were.

A known limit, not new. On Resolume's FFT a hit can trigger twice, 50 ms apart: when its attack reaches the upper bands one spectrum before its low end does, the two land just outside the merge window. The harness saw it on four kicks in ten at 48 kHz; v0.1.0 does the same (three in ten).

Photosensitivity note. The combed patterns (Gelgit, Chevron, Nonpareil, Bouquet, French Curl) fill the frame with fine, high-contrast regular stripes, which broadcast guidance (ITU-R BT.1702, Ofcom) treats as a risk for people with photosensitive epilepsy on their own. On all 33 of Resolume's demo clips no setting went over three flashes a second. The user guide has the details.

Where it has run. Arena 7.29.0 on a Mac, and Arena 7.27.1 on Windows (software rendering, no sound device). On Windows, this release's own DLL passed plugin-bench's Arena gate (9 passed, 0 failed, 2 skipped): it registers as MA01, an effect, with all 19 parameters (Arena's Opacity first) as declared, renders, is the identity at its defaults, and 10 controls move the picture. Onsets on Resolume's FFT haven't been seen on Windows, because the test machine has no sound device. No live audio input has ever been opened, and it has never been in a show.

Credits. Live audio comes from earshot (a snapshot of commit 02306da, unmodified), with miniaudio under it; ATTRIBUTIONS.md has the details. The code is MIT.

Downloads: a universal macOS build (Apple silicon and Intel) as a .dmg or .zip, and a Windows x64 installer (-setup.exe) or .zip, each with ATTRIBUTIONS.md. The macOS build is Developer ID-signed and notarised minutes after publication; if macOS refuses a download, it's from before that, so download it again. The Windows build isn't signed, so SmartScreen warns once about the installer. User guide · Project page · Browser demo

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 13:12

The first release of Marbling: paper marbling for Resolume Arena and Avenue, as one FFGL effect, SW Marbling (MA01). Your clip's colours are dropped as ink on water and combed into the patterns marblers make: Stone, Suminagashi, Gelgit, Chevron, Nonpareil (the default), Bouquet and French Curl. Each trigger is the pattern's next step, from drum hits (Onsets, through earshot), Resolume's beat, or the Trigger button.

Photosensitivity note. The combed patterns (Gelgit, Chevron, Nonpareil, Bouquet, French Curl) fill the frame with fine, high-contrast regular stripes, which broadcast guidance (ITU-R BT.1702, Ofcom) treats as a risk for people with photosensitive epilepsy on their own. Stone and Suminagashi have no combs. Flashes were measured on all 33 of Resolume's demo clips through the harness at 60 fps, at the defaults and at the fastest, largest and busiest settings, under the clips' own audio, hot audio and a 200 BPM beat: none went over three flashes a second; the plugin's own worst was two a second. Your clips and settings can differ. The user guide says how to keep it safe.

The one idea. Every stroke a marbler makes is a map of the water's surface onto itself that moves ink and never thins it. Lu, Jaffer, Jin, Zhao and Mao ("Mathematical Marbling", 2012) wrote each tool as a closed form: a drop pushes everything around it out by √(ρ² + r²), a tine drags ink along by αλ/(d + λ), a comb repeats the tine. Each has a Jacobian determinant of exactly 1, so no ink is created, lost, mixed or blurred, and an edge between two inks stays sharp however many strokes cross it. The first ink on the water is your clip, still playing; each pixel is traced back through the newest 64 strokes exactly, every frame, and older ones are composed into a backward map.

Controls: Pattern; Trigger On (Onsets, Beat, Manual); Audio Input (Resolume FFT by default, the system default, or a device by name); Trigger; Paper; Auto Paper (a fresh sheet on the first trigger after a finished recipe, on); Drop Size; Drop Rate; Tine Spacing; Depth; Speed; Mix. Alpha is ink density: a clear part of the clip stays clear wherever the comb takes it, and Mix 0 hands the clip through bit for bit. At the defaults with no sound it does nothing at all.

Downloads: a universal macOS build (Apple silicon and Intel) as a .dmg or .zip, and a Windows x64 installer (-setup.exe) or .zip, each with ATTRIBUTIONS.md. The plugin goes in Documents/Resolume Arena/Extra Effects. The macOS build is Developer ID-signed and notarised minutes after publication; if macOS refuses a download, it's from before that, so download it again. The Windows build isn't signed, so SmartScreen warns once about the installer.

What is measured (offline, by tools/verify.sh on an Apple M4 Max under macOS 26, driving the plugin's own class through the ProcessOpenGL a host calls, in a headless GL context on a synthetic clock, at 1280×720 and 320×180 and on Apple's software renderer, with audio fed through earshot's feed() as a device's would be):

  • The tools. A drop's backward map matches Lu's closed form to 2.8e-4 px; combs, wavy combs, circles and vortices to 7.2e-4 px. A comb drawn back along its own tines restores every measured pixel to 9.8e-4 px. Through six stacked tools a block of the frame keeps its area to 2.1e-4 at worst, inside a bound from the picture's own chord sag.
  • The ink. Through a whole Nonpareil, no pixel is a blend of inks or a colour that was never dropped. The one place the picture blurs is a bake, once per 32 or more strokes, and it is measured: at the default comb, 12% of pixels move more than half a pixel at 1280×720.
  • Time. 24, 60 and 144 fps give the same triggers and the same picture; beats land inside the frame to 0 µs and onsets 0–26.7 ms after the hit.
  • The checks can fail. Twenty deliberately wrong models and 27 one-character mutants of the shipped code are all caught, and every control changes the picture. With MARBLING_NO_DEVICES=1, or under Beat or Manual, it makes no audio-framework call. The bundle is universal, and oxbow reads SW Marbling / MA01 / effect.

In Resolume. On a Mac, in Arena 7.29.0 on an M4 Max, over Arena's REST API over an opaque test card (nothing saved): Arena shows all 18 parameters after its own Opacity with the defaults to the float, and the plugin is the identity at its defaults. The Trigger button (held 0.3 s), a whole 17-press Nonpareil, Auto Paper, Paper, Beat, Mix and every control did what the harness says, read in a still context; Tine Spacing's first comb left tines 83.1 and 216.0 px apart against 85.6 and 215.0 px from the formula. Onsets on Resolume's own FFT fire there: re-tested on 19 November with this release's own bundle, with Arena's demo loop Beat 001.wav playing on the layer below and the Audio buffer on Composition, the loop's hits dropped ink and ran the strokes (all 39 snapshot pairs over 8.5 s changed), and with nothing playing, on Local over the card and on External nothing triggered; Arena's audio settings were left as they were. (The first check played Beat 001.mov, which has no sound: Arena's demo clips keep it in the matching .wav files.) It listed the audio inputs and opened none; no microphone prompt appeared. On Windows, in Arena 7.27.1 on win-lab (Mesa's llvmpipe, no GPU, no sound device), plugin-bench's Arena gate passed 9 checks, failed none and skipped 2 (the buttons, and audio with no device): it registers, all 19 parameters match, it renders and is the identity at its defaults, both with the DLL from this release's own zip and with a build dispatched before the tag. The gate can't press a button, and under Beat the pattern moves whatever the controls do, so the Mac's still-context readings say more about each control.

What isn't verified, or is a limit. It has met only a test card in Resolume: no clips through a show, and nothing timed there. It has never opened a live audio device (the device path is earshot's, tested there on a scripted backend). The recipes follow the marblers' accounts, but every comb's depth and sharpness, the drop sizes and the speeds are choices, since no source gives them; whether it looks like a real sheet to a marbler is untested. Real inks aren't incompressible: here drops push old ink out of the frame. A stroke still moving doesn't drag a drop that falls during it. On fast onsets a finished pattern shows for about one trigger before Auto Paper's fresh sheet. Edges aren't antialiased. It has run on one Apple GPU, Apple's software renderer and Mesa's llvmpipe only.

Cost, on an Apple M4 Max on the GPU's clock: about 0.13–0.24 ms a frame at 720p and 0.33–0.53 ms at 1080p at the defaults; 1.2 ms at 1080p when a frame traces all 64 strokes.

Credits. Live audio comes from earshot (a snapshot of commit 8124191, unmodified), with miniaudio under it; ATTRIBUTIONS.md has the details. The code is MIT.

Not done. No presets, no OpenFX port and no source version.