Skip to content

Releases

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 16:24

A fix for Snowglobe's default trigger. SW Snowglobe (SG01) is a snow globe for Resolume Arena and Avenue, as an FFGL effect: your clip stands inside a glass globe of water and glycerine, and the music shakes it.

Kick now fires on Resolume's own FFT. In v0.1.0 it never did. Kick is the default trigger and Resolume FFT is the default Audio Input, so at the defaults the globe never shook to music. Beat and Shake Now were not affected.

  • Arena 7.29.0 on a Mac: v0.1.1 was mounted over Arena's REST API on a still card. Arena's demo drum loop Beat 001.wav played on the layer below, with Audio on Composition. The globe moved in 69 of 69 snapshot pairs at the default Shake 0.3, and in 40 of 40 at Shake 1.0. v0.1.0's own bundle, on the same set-up, moved in 0 of 69. With no music playing, it stayed still (0 of 24 pairs).
  • Why it never fired. The shakes 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 it gave each bin to the band holding the bin's centre. Bin 0's centre (172 Hz) is above the top of the kick band (160 Hz), so the kick band got no bin at all.
  • 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). Each bin holds magnitudes, and the bins are refreshed about every 43 ms.
  • The fix. v0.1.1 takes earshot 02306da. It shares each bin among the bands it overlaps, so the kick band gets 0.32 of bin 0. Snowglobe also passes Resolume's sample rate to earshot. Its log reads "host audio at 48000 Hz: Resolume's FFT bins are 375 Hz each".

On Resolume's FFT, Kick follows the low end. Resolume's lowest bin holds everything from 0 to 375 Hz: the kick, the bass and the low toms together. So a bass line shakes the globe too. With Arena's Bass 001.wav (a bass line, no drums) it moved in 40 of 40 pairs. If that's too much, lower Shake or use Beat. An audio input chosen by name in Audio Input hears the real 40–160 Hz band, but it has never been tried in Resolume.

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

  • At 48 kHz, 10 kicks gave 10 shakes. The latest came 60.4 ms after its kick, inside the limit of two spectra and a frame (102.0 ms).
  • At 44.1 kHz the result was the same (latest 62.5 ms, limit 109.5).
  • Claps and hats alone gave no shake.
  • Over a held bass, no kick was missed.
  • Against v0.1.0's earshot the check fails, 0 of 10.

Three new deliberately wrong models fail it, making 30 in all. All 46 one-character mutants are still caught. Everything else tools/verify.sh measured in v0.1.0 passes unchanged: the fall, the swirl, the glass, the bit-exact stillness and the frame-rate independence. The photosensitivity warning stands as it was. With Shake and Count both at full, the snow can blank and reveal the clip on every kick or beat (the user guide's "Flashing" has the table).

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 the fleet's Arena gate (9 passed, 0 failed, 2 skipped): it registers as SG01, an effect, with all 18 controls as declared, renders, and 10 controls move the picture. Kick on Resolume's FFT hasn'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.

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 15:51

The first release of Snowglobe: a snow globe for Resolume Arena and Avenue, as an FFGL effect, SW Snowglobe (SG01). Your clip is the scene standing inside a glass globe of water and glycerine, and the music shakes it.

Photosensitivity warning. With Shake and Count both at full, the snow can fill the globe and blank and reveal the clip on every kick or beat. Over Resolume's 33 demo clips that crossed three flashes a second over a third of the picture on one dark clip (Cyberspace 09: 7 to 8 rises and falls in its worst second, the line being 6, with every music tried, and none without the effect). At the defaults no clip crossed the line (worst 5). The user guide's "Flashing" has the table. Check your settings before you put this in front of an audience.

The one idea. A snow globe is a slow, viscous, settling flow seen through one curved surface. The fill is a real water–glycerol mixture (Fill: 60 to 80 % glycerol by mass), with its viscosity from Cheng's formula, its density from Volk and Kähler's model and its refractive index from Hoyt's fits to the Glycerine Producers' Association's tables. The flakes are thin PET discs, or PET beads, and each falls at its low-Reynolds-number terminal speed: a disc as its radius (the drag of a disc, 16μa broadside), a bead as its radius squared (Stokes's law), each disc gliding at its own tilt. A shake lifts the snow lying on the glass and sets the fill turning in the sphere's slowest viscous mode, a Bessel-function swirl that dies away at the rate the fill's viscosity gives. The clip, standing at the centre, is ray-traced through the water's surface: magnified by the fill's index at the centre, about 1.41 times, and squeezed at the rim. Once the snow has landed, nothing moves until the next shake.

Controls: Shake (0–1), Trigger On (Kick, Beat, Button), Audio Input (Resolume FFT, System default, then each input by name), Shake Now; Fill (60–80 % glycerol), Globe (0.25–1 of the frame's height), Mix; Snow (Flakes or Beads), Size, Range, Count (50–3000). The defaults are Shake 0.3 on kicks from Resolume's FFT, 60 % glycerol, 600 flakes from 0.5 to 1.0 mm in radius, and the globe 0.9 of the frame's height across.

Outside the globe the output is transparent, so put a layer behind it. The clip's own transparency is kept: where the clip is transparent you see through the globe.

Where the shakes come from. Kick: onsets in the lowest band (40–160 Hz) of earshot, the fleet's live-audio front end (an unmodified snapshot), gated against hats, from Resolume's own FFT by default (where in this release it never fires: see In Resolume) or from an input chosen by name (a composition remembers the name, not the place in the list). Beat: every quarter of Resolume's bar, placed inside the frame. Button: Shake Now, a full shake under every trigger. Under Beat and Button the plugin never touches the audio system. On macOS the first input opened inside Resolume asks for Resolume's microphone permission.

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 Silicon Mac under macOS 26, driving the plugin's own class in a headless GL context at 1280×720 and 320×180 and on Apple's software renderer, with audio fed through earshot's feed() as a device would feed it, and every number read off the rendered picture):

  • The fall. Single flakes and beads at two fills fall at the tables' speed to −0.84 % and −2.30 %, against a tolerance of 3.57 % (Cheng's own 3.5 % plus the fit's); speed goes as size for discs and as size squared for beads (log-log slopes 1.0000 and 2.0000); a 45° disc glides at −0.20000 of its fall.
  • The swirl decays at the slowest mode's rate to +1.1 % and +2.7 %, two tracers in the Bessel profile's ratio to five figures; a lift-only shake settles in 25.43 s against 25.20 s derived from the tables.
  • The glass. The clip lands where an independent ray trace puts it to 1.2e-4 px; the centre is magnified by the fill's index to 0.15 %; flakes in front of and behind the card land on the trace to 0.0005 px.
  • Stillness and time. Once the snow has landed, 300 frames over music with no kick are bit-identical, and 300 more with eight controls moving change no flake by a bit. 24, 60 and 144 fps give the same flurry, bit for bit; Resolume's clock at 499 million ms changes nothing.
  • The checks can fail. 27 deliberately wrong models each fail their check, all 46 one-character mutants of the shipped GLSL and C++ are caught, and all 10 sweepable controls change the picture. With the device gate on, or under Beat or Button, an interposer sees no audio-framework load and no CoreAudio call.

In Resolume. On a Mac, in Arena 7.29.0 on Apple Silicon (19 November), with this release's own universal bundle over Arena's REST API over an opaque card: it registers as SG01 with all 18 controls as declared, holds still at rest, Mix 0 is the bare card, each control changes the picture and, set back, restores it, Beat on Arena's clock shakes it (23 of 24 snapshot pairs at the default Shake), and one Shake Now press (held 0.3 s) shakes it; it listed the inputs and opened none, and no microphone prompt appeared. But Kick, the default trigger, never fires on Resolume's own FFT in this release: with Arena's demo loop Beat 001.wav playing below on Composition the globe never moved (0 of 69 snapshot pairs at Shake 0.3, 0 of 41 at 1.0), because earshot reads Resolume's 64 bins as evenly spread up to 22.05 kHz, so the lowest is centred at 172 Hz, above the kick band's 160 Hz top, and the kick band never gets a bin. In Resolume, use Beat or Button. On Windows, in Arena 7.27.1 on win-lab (software rendering, no sound device), with the x64 DLL the release workflow built from this source, the fleet's Arena gate passed 9 and skipped 2: it registers as SG01, an effect, with all 18 controls as declared, renders, and 10 controls move the picture (the snow lying still, and Shake under Trigger On Beat on Arena's clock). No live audio input has ever been opened, so Kick has never been seen shaking the globe inside Resolume, and it has never run in a show. Try it with Beat or Button first.

Chosen, not measured, and open. A shake lifts only snow that has landed, so under steady kicks the snow stays in the lower part of the globe. Settling takes tens of seconds, as real globes do; no faster fill stays in the slow-flow regime. The kick gate (a quarter of the loudest band), the full shake's spin (2 rad/s), the lift (up to the globe's diameter at Shake 1), the globe's size (80 mm) and the viewing distance are choices. A flake grown with Size or Range while resting pokes past the glass until the next shake. Left out: the glass wall, reflections, a base or figurine, drag above Re → 0 (the largest discs in the thinnest fill reach Re 0.63), tumbling and sliding.

Cost, on an Apple Silicon Mac busy with other builds: GPU time at the defaults 0.34–0.36 ms at 720p and 0.68 ms at 1080p, CPU 1.2–1.7 ms a frame; 3000 flakes, the cap, 1.3–2.2 ms of GPU and 2.2–3.5 ms of CPU. macOS figures only; 4K not measured.

Not done. No presets and no OpenFX port.