Stream Scene
stream_sceneSet the visual page’s picture with raw numeric layer settings, updating instantly without a blip so music-reactive scenes change as the beat moves.
Instructions
Set the visual page's picture with raw numbers; it changes on the page (and on a stream in mode='page') at once, with no blip. Reach for it when you change what viewers see move with the music. layers: a list drawn in order, each {kind, x, y, w, h (fractions of the frame), ...}: bars {bands: [lo, hi], colors, gap, mirror, smooth, gain}: one bar per band; ring {x, y (centre), r, h (bar length), bands, thickness, spin (degrees per beat)}; pulse {x, y, r0, r1, drive, decay, fill}: a circle that swells with its drive; line {bands, thickness, fill}: the spectrum as a line; hits {tracks: {'': '#rrggbb'}, shape (circle, square, bar), decay}: a light per track that flashes on each of its notes; particles {x, y, count, speed, size, spawn (what bursts them: beat, track:, band:)}; text {text, x, y, size, align, drive}; grid {cols, rows, scroll (rows per beat), drive}. Every layer also takes color or colors (a gradient, '#rrggbb'), opacity, blend (source-over, lighter, screen, multiply, overlay), smooth (0-1) and gain. drive: level, beat, band:<0-15>, bands:- or track:. The 16 bands run log-spaced from 40 Hz to 16 kHz: 0-3 sub and bass, 4-7 low mids, 8-11 mids, 12-15 air. background: '#rrggbb' or a 2-3 colour gradient top to bottom. trails: 0-0.98, how long motion lingers. replace=False adds the layers on top of the current ones. A wrong setting is refused with what it takes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layers | No | ||
| trails | No | ||
| replace | No | ||
| background | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |