Branchwell

PulseCanvas / app · pulsecanvas.ai / docs / ORIGINAL_VISUALIZERS.md

Raw 2.8 KB on 32796b3b2cff314d20e7c78bdc17d74e2eace8c1

Show the source

PulseCanvas visualizer designs

Seven new designs generate geometry directly from the soundtrack spectrum and project timestamp. Preview, scrubbing and offline export use the same pure generation functions. Arc Spray uses a fixed integer hash and timestamp-derived particle ages; rendering never depends on a mutable random generator or a previous frame.

Scene IDDesignGeometryMusic response
15Lotus ResonanceEleven concentric twelve-petal rosettesAngle-local bands swell petal radii and widths; bass breathes the full mandala.
16Orbit LoomSeven tubular rings tilted around different axesLocal frequencies thicken and expand the arcs; bass expands each orbit.
17Silk CurrentEight twisting silk ribbons spanning depthFrequency position along each strip changes crest height and strip width.
18Double TwistFour tall corkscrew strandsBass spreads strands; height-local frequencies add radius and transverse ripple.
19Arc SprayDeterministic ballistic sprayEach particle samples a different band to control launch height and lateral spread.
20Signal TilesA field of isolated luminous tilesFrequencies lift tile columns, while bass drives travelling diagonal pulses.
21Resonant ShellA closed flower with five major lobesLocal bands deform petals and fine ridges; bass breathes the whole surface.

All designs also respond through color luminance. Their geometry is centered around the origin, with typical default extents inside ±12 world units. Camera fitting is the renderer's responsibility. Triangle designs provide per-vertex color and UVs. The helix and fountain provide point vertices and recommended point size; the renderer chooses how to shade the points.

OriginalGeometry.make(scene:time:spectrum:intensity:palette:) returns vertices, triangle indices (empty for points), primitive type and point size. Invalid spectra are sanitized; an unknown scene returns an empty mesh. Animation advances from the absolute timestamp, so exporting a selected range or revisiting a frame does not require simulating the earlier timeline.

./scripts/test-original-geometry.sh compiles with Swift 6 and checks all seven designs for deterministic repeat frames, animation progress, finite positions and colors, valid topology, actual audio displacement and color response, and distinct response to low versus high frequencies. These checks passed on October 10, 2026. They verify geometry behavior; rendered appearance is checked separately by the Metal renderer tests.

The renderer expands these local geometries into animated fields that extend beyond the canvas. This repeating layout, moving perspective framing, and palette-preserving directional surface lighting are separate from the pure geometry generators.