Skip to content

feat(visualizer): drawn-path visualizer and four music-video styles - #1276

Merged
CaYatur merged 4 commits into
mainfrom
feat/path-visualizer
Dec 2, 2026
Merged

CaYatur merged 4 commits into
mainfrom
feat/path-visualizer

Conversation

@CaYatur

@CaYatur CaYatur commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Drawn Path (pathviz)

A visualizer that follows a shape. Bars, spikes, dots or a wave sit outside, inside or on both sides of the path.

  • Shapes: triangle, square, trapezoid, diamond, hexagon, star, heart, circle, line, wavy line, or a custom path.
  • Editor in the layer card: drag points (Shift snaps), click an edge to add a point, double-click or right-click to delete. Freehand draws a stroke that is simplified (RDP) and fitted to the box; returning to the start closes it. Open/close and mirror buttons.
  • Geometry: bars are spaced by arc length. The outward side comes from the signed area, so the drawing direction does not matter. Optional corner smoothing of the normals. On closed paths the spectrum is mirrored so there is no seam.
  • Controls: size, position, rotation, continuous spin, bass pulse, path line, bar length. The layout editor moves and resizes the layer.
  • Geometry is in shared/path-shapes.js, used by both the renderer and the editor.

New styles (generative4.js)

  • Light Strips (Particles and events): vertical light strips in the dark, flashing on the beat, with colour-split edges.
  • Lit Blobs (Particles and events): merging coloured metaballs, shaded with a light and highlights.
  • Neon Tunnel (Radial): polygon rings rushing forward, edges shaking with the highs. Side count setting.
  • Spike Crown (Radial): curved blades around an empty ring, with room for a logo layer.

All of them are seeded, use the frame clock and allocate nothing per frame, so export is repeatable.

Wiring

Catalog, defaults, schema ranges, modulation labels, English strings, all five pages, the layout editor, and regenerated mode thumbnails. README mode counts and lists updated (71 → 76).

Tests

tests/path-shapes.test.js:

  • orientation independence
  • arc-length spacing
  • open-path side
  • smoothing
  • fallback for broken paths
  • freehand simplify, including a closed loop
  • every side × element draws within its layout box
  • style modes draw and repeat frame for frame

Full suite: 4946 tests, 0 failures. Checked in the app: editor, freehand drawing, and each mode in the preview.

CaYatur and others added 4 commits December 2, 2026 13:37
The Now Playing card timed its intro animation from the frame clock t. In the timeline composition t is the show time: it freezes on pause and goes backwards on rewind, so the card stayed on the first, transparent intro frame until playback moved. This also hid the placeholder. The card now keeps its own clock from summed frame durations; export is unchanged (dt is one video frame there).

An enabled timeline also reports the clip under a paused playhead (playing: false), so the card keeps showing the timeline's track.

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
Drawn Path (pathviz): bars, spikes, dots or a wave along a shape, outside, inside or on both sides. Presets (triangle, square, trapezoid, diamond, hexagon, star, heart, circle, line, wavy line) or a custom path edited in the layer card: drag points, click an edge to add one, double/right-click to delete, or draw freehand (simplified and fitted to the box; returning to the start closes it). Bars are spaced by arc length; the outward side comes from the signed area, so drawing direction does not matter. Layout editor moves and resizes it. Geometry lives in shared/path-shapes.js, shared by the renderer and the editor.

New modes in generative4.js: Light Strips (vertical strips flashing on the beat with colour-split edges), Neon Tunnel (jagged polygon rings rushing forward), Spike Crown (curved blades around an empty ring) and Lit Blobs (shaded merging metaballs). All seeded and allocation-free per frame.

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
…bing backwards

A backwards step rebuilds every clip's layer stack. The Now Playing card restarted its entrance animation and images reloaded on each step, so both stayed invisible while dragging back. Their state is now carried to the new stack, like video players already were; particles, envelopes and modulation still rebuild.

'Show on change' with the default (null) durations read them as 0 and withdrew the card after a tenth of a second; null now falls back to the speed preset.

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
… Now Playing fix

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
@CaYatur
CaYatur merged commit b1e054c into main Dec 2, 2026
5 checks passed
@CaYatur
CaYatur deleted the feat/path-visualizer branch December 2, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant