agentvfx 0.0.0-stage → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) hide show
  1. package/AGENTS.md +8 -0
  2. package/GEMINI.md +1 -0
  3. package/LICENSE +202 -0
  4. package/README.md +228 -2
  5. package/package.json +35 -4
  6. package/skills/agentvfx/LICENSE +202 -0
  7. package/skills/agentvfx/NOTICE +50 -0
  8. package/skills/agentvfx/SKILL.md +90 -0
  9. package/skills/agentvfx/engine/core/constants.mjs +84 -0
  10. package/skills/agentvfx/engine/core/flash-constants.mjs +23 -0
  11. package/skills/agentvfx/engine/core/flash.mjs +240 -0
  12. package/skills/agentvfx/engine/core/mark.mjs +25 -0
  13. package/skills/agentvfx/engine/core/palettes.mjs +36 -0
  14. package/skills/agentvfx/engine/core/schedule.mjs +85 -0
  15. package/skills/agentvfx/engine/core/templates.mjs +43 -0
  16. package/skills/agentvfx/engine/core/util.mjs +167 -0
  17. package/skills/agentvfx/engine/core/validate.mjs +334 -0
  18. package/skills/agentvfx/engine/node/analysis.mjs +172 -0
  19. package/skills/agentvfx/engine/node/audio.mjs +621 -0
  20. package/skills/agentvfx/engine/node/board.mjs +24 -0
  21. package/skills/agentvfx/engine/node/chrome.mjs +349 -0
  22. package/skills/agentvfx/engine/node/encode.mjs +110 -0
  23. package/skills/agentvfx/engine/node/eye.mjs +77 -0
  24. package/skills/agentvfx/engine/node/footage.mjs +129 -0
  25. package/skills/agentvfx/engine/node/frame-worker.mjs +39 -0
  26. package/skills/agentvfx/engine/node/host.mjs +31 -0
  27. package/skills/agentvfx/engine/node/job.mjs +181 -0
  28. package/skills/agentvfx/engine/node/png.mjs +112 -0
  29. package/skills/agentvfx/engine/node/render.mjs +161 -0
  30. package/skills/agentvfx/engine/node/stage-capture.mjs +187 -0
  31. package/skills/agentvfx/engine/node/stage-serve.mjs +72 -0
  32. package/skills/agentvfx/engine/node/stills.mjs +100 -0
  33. package/skills/agentvfx/engine/node/ws-server.mjs +132 -0
  34. package/skills/agentvfx/engine/web/gl.mjs +319 -0
  35. package/skills/agentvfx/engine/web/glsl-common.mjs +78 -0
  36. package/skills/agentvfx/engine/web/init.js +23 -0
  37. package/skills/agentvfx/engine/web/prelude.mjs +150 -0
  38. package/skills/agentvfx/engine/web/render.html +11 -0
  39. package/skills/agentvfx/engine/web/render.mjs +388 -0
  40. package/skills/agentvfx/engine/web/scale.mjs +15 -0
  41. package/skills/agentvfx/engine/web/text.mjs +158 -0
  42. package/skills/agentvfx/plates/terminalcore/README.md +61 -0
  43. package/skills/agentvfx/plates/terminalcore/__pycache__/crt.cpython-313.pyc +0 -0
  44. package/skills/agentvfx/plates/terminalcore/__pycache__/font.cpython-313.pyc +0 -0
  45. package/skills/agentvfx/plates/terminalcore/__pycache__/gallery.cpython-313.pyc +0 -0
  46. package/skills/agentvfx/plates/terminalcore/__pycache__/gallery_mats.cpython-313.pyc +0 -0
  47. package/skills/agentvfx/plates/terminalcore/__pycache__/gallery_room.cpython-313.pyc +0 -0
  48. package/skills/agentvfx/plates/terminalcore/__pycache__/materials.cpython-313.pyc +0 -0
  49. package/skills/agentvfx/plates/terminalcore/__pycache__/nodekit.cpython-313.pyc +0 -0
  50. package/skills/agentvfx/plates/terminalcore/__pycache__/room.cpython-313.pyc +0 -0
  51. package/skills/agentvfx/plates/terminalcore/__pycache__/shots.cpython-313.pyc +0 -0
  52. package/skills/agentvfx/plates/terminalcore/__pycache__/textures.cpython-313.pyc +0 -0
  53. package/skills/agentvfx/plates/terminalcore/__pycache__/wall.cpython-313.pyc +0 -0
  54. package/skills/agentvfx/plates/terminalcore/crt.py +143 -0
  55. package/skills/agentvfx/plates/terminalcore/font.py +80 -0
  56. package/skills/agentvfx/plates/terminalcore/gallery.py +61 -0
  57. package/skills/agentvfx/plates/terminalcore/gallery_mats.py +144 -0
  58. package/skills/agentvfx/plates/terminalcore/gallery_room.py +126 -0
  59. package/skills/agentvfx/plates/terminalcore/materials.py +170 -0
  60. package/skills/agentvfx/plates/terminalcore/nodekit.py +87 -0
  61. package/skills/agentvfx/plates/terminalcore/room.py +82 -0
  62. package/skills/agentvfx/plates/terminalcore/scene.py +219 -0
  63. package/skills/agentvfx/plates/terminalcore/shots.py +48 -0
  64. package/skills/agentvfx/plates/terminalcore/textures.py +79 -0
  65. package/skills/agentvfx/plates/terminalcore/wall.py +103 -0
  66. package/skills/agentvfx/references/plates.md +22 -0
  67. package/skills/agentvfx/references/template-format.md +149 -0
  68. package/skills/agentvfx/references/web.md +63 -0
  69. package/skills/agentvfx/runtime/agentvfx.js +708 -0
  70. package/skills/agentvfx/schemas/fx-score.schema.json +98 -0
  71. package/skills/agentvfx/scripts/export-web.mjs +157 -0
  72. package/skills/agentvfx/scripts/loop.mjs +129 -0
  73. package/skills/agentvfx/scripts/make-beat.mjs +133 -0
  74. package/skills/agentvfx/scripts/plate.mjs +82 -0
  75. package/skills/agentvfx/scripts/vfx.mjs +173 -0
  76. package/skills/agentvfx/templates/_test/feedback-counter/fx.json +11 -0
  77. package/skills/agentvfx/templates/_test/feedback-counter/main.frag +4 -0
  78. package/skills/agentvfx/templates/_test/feedback-counter/pass0.frag +4 -0
  79. package/skills/agentvfx/templates/_test/gradient/fx.json +23 -0
  80. package/skills/agentvfx/templates/_test/gradient/main.frag +5 -0
  81. package/skills/agentvfx/templates/_test/identity/fx.json +10 -0
  82. package/skills/agentvfx/templates/_test/identity/main.frag +4 -0
  83. package/skills/agentvfx/templates/_test/strobe/fx.json +14 -0
  84. package/skills/agentvfx/templates/_test/strobe/main.frag +6 -0
  85. package/skills/agentvfx/templates/_test/text-probe/fx.json +15 -0
  86. package/skills/agentvfx/templates/_test/text-probe/main.frag +6 -0
  87. package/skills/agentvfx/templates/brutal/NOTES.md +14 -0
  88. package/skills/agentvfx/templates/brutal/_src/boot-log/def.mjs +57 -0
  89. package/skills/agentvfx/templates/brutal/_src/boot-log/main.src.frag +129 -0
  90. package/skills/agentvfx/templates/brutal/_src/build.mjs +33 -0
  91. package/skills/agentvfx/templates/brutal/_src/halftone-field/def.mjs +72 -0
  92. package/skills/agentvfx/templates/brutal/_src/halftone-field/main.src.frag +94 -0
  93. package/skills/agentvfx/templates/brutal/_src/hud-deck/deck-left.src.glsl +100 -0
  94. package/skills/agentvfx/templates/brutal/_src/hud-deck/deck-right.src.glsl +61 -0
  95. package/skills/agentvfx/templates/brutal/_src/hud-deck/deck-tiles.src.glsl +153 -0
  96. package/skills/agentvfx/templates/brutal/_src/hud-deck/def.mjs +82 -0
  97. package/skills/agentvfx/templates/brutal/_src/hud-deck/main.src.frag +110 -0
  98. package/skills/agentvfx/templates/brutal/_src/hud-deck/pass0.src.frag +38 -0
  99. package/skills/agentvfx/templates/brutal/_src/shared/defs.mjs +28 -0
  100. package/skills/agentvfx/templates/brutal/_src/shared/icons.glsl +72 -0
  101. package/skills/agentvfx/templates/brutal/_src/shared/lib.glsl +115 -0
  102. package/skills/agentvfx/templates/brutal/_src/shared/screen.glsl +43 -0
  103. package/skills/agentvfx/templates/brutal/boot-log/demo-acid.json +1 -0
  104. package/skills/agentvfx/templates/brutal/boot-log/demo-phosphor.json +1 -0
  105. package/skills/agentvfx/templates/brutal/boot-log/demo-ultramarine.json +1 -0
  106. package/skills/agentvfx/templates/brutal/boot-log/fx.json +257 -0
  107. package/skills/agentvfx/templates/brutal/boot-log/main.frag +242 -0
  108. package/skills/agentvfx/templates/brutal/collage/_src/00-lib.glsl +73 -0
  109. package/skills/agentvfx/templates/brutal/collage/_src/10-spectrum-scope.glsl +73 -0
  110. package/skills/agentvfx/templates/brutal/collage/_src/20-meter-readout-cross.glsl +87 -0
  111. package/skills/agentvfx/templates/brutal/collage/_src/30-footage-fillers.glsl +92 -0
  112. package/skills/agentvfx/templates/brutal/collage/_src/40-editorial.glsl +232 -0
  113. package/skills/agentvfx/templates/brutal/collage/_src/50-typefx.glsl +163 -0
  114. package/skills/agentvfx/templates/brutal/collage/_src/60-scene-lib.glsl +104 -0
  115. package/skills/agentvfx/templates/brutal/collage/_src/61-scene-specimen.glsl +71 -0
  116. package/skills/agentvfx/templates/brutal/collage/_src/62-scene-wiring.glsl +96 -0
  117. package/skills/agentvfx/templates/brutal/collage/_src/63-scene-fieldcut.glsl +119 -0
  118. package/skills/agentvfx/templates/brutal/collage/_src/64-scene-pattern.glsl +64 -0
  119. package/skills/agentvfx/templates/brutal/collage/_src/641-scene-anatomy.glsl +49 -0
  120. package/skills/agentvfx/templates/brutal/collage/_src/642-scene-deck.glsl +78 -0
  121. package/skills/agentvfx/templates/brutal/collage/_src/643-scene-bootlog.glsl +60 -0
  122. package/skills/agentvfx/templates/brutal/collage/_src/644-scene-tunnel.glsl +48 -0
  123. package/skills/agentvfx/templates/brutal/collage/_src/645-scene-runner.glsl +42 -0
  124. package/skills/agentvfx/templates/brutal/collage/_src/646-scene-ascii.glsl +66 -0
  125. package/skills/agentvfx/templates/brutal/collage/_src/647-scene-cubewall.glsl +80 -0
  126. package/skills/agentvfx/templates/brutal/collage/_src/648-scene-vortex.glsl +46 -0
  127. package/skills/agentvfx/templates/brutal/collage/_src/649-scene-sticker.glsl +72 -0
  128. package/skills/agentvfx/templates/brutal/collage/_src/65-scene-main.glsl +1 -0
  129. package/skills/agentvfx/templates/brutal/collage/_src/650-scene-ribbon.glsl +55 -0
  130. package/skills/agentvfx/templates/brutal/collage/_src/651-scene-slab.glsl +38 -0
  131. package/skills/agentvfx/templates/brutal/collage/_src/652-scene-framedial.glsl +79 -0
  132. package/skills/agentvfx/templates/brutal/collage/_src/653-scene-tilt.glsl +40 -0
  133. package/skills/agentvfx/templates/brutal/collage/_src/654-scene-marquee.glsl +45 -0
  134. package/skills/agentvfx/templates/brutal/collage/_src/655-scene-lens.glsl +57 -0
  135. package/skills/agentvfx/templates/brutal/collage/_src/656-scene-liquid.glsl +35 -0
  136. package/skills/agentvfx/templates/brutal/collage/_src/657-scene-panelgrid.glsl +75 -0
  137. package/skills/agentvfx/templates/brutal/collage/_src/658-scene-mirror.glsl +49 -0
  138. package/skills/agentvfx/templates/brutal/collage/_src/66-scene-main.glsl +27 -0
  139. package/skills/agentvfx/templates/brutal/collage/_src/90-main.glsl +120 -0
  140. package/skills/agentvfx/templates/brutal/collage/_src/build.mjs +24 -0
  141. package/skills/agentvfx/templates/brutal/collage/_src/sync-presets.mjs +16 -0
  142. package/skills/agentvfx/templates/brutal/collage/demo-bone-lime.json +1 -0
  143. package/skills/agentvfx/templates/brutal/collage/demo-lime-sparse.json +1 -0
  144. package/skills/agentvfx/templates/brutal/collage/demo-orange-dense.json +1 -0
  145. package/skills/agentvfx/templates/brutal/collage/demo-ultra-slow.json +1 -0
  146. package/skills/agentvfx/templates/brutal/collage/fx.json +4882 -0
  147. package/skills/agentvfx/templates/brutal/collage/layout.mjs +97 -0
  148. package/skills/agentvfx/templates/brutal/collage/layouts.json +366 -0
  149. package/skills/agentvfx/templates/brutal/collage/main.frag +2367 -0
  150. package/skills/agentvfx/templates/brutal/collage/pass0.frag +265 -0
  151. package/skills/agentvfx/templates/brutal/halftone-field/demo-acid.json +1 -0
  152. package/skills/agentvfx/templates/brutal/halftone-field/demo-ascii.json +1 -0
  153. package/skills/agentvfx/templates/brutal/halftone-field/demo-dither.json +1 -0
  154. package/skills/agentvfx/templates/brutal/halftone-field/demo-orange.json +1 -0
  155. package/skills/agentvfx/templates/brutal/halftone-field/demo-phosphor.json +1 -0
  156. package/skills/agentvfx/templates/brutal/halftone-field/demo-ultramarine.json +1 -0
  157. package/skills/agentvfx/templates/brutal/halftone-field/fx.json +474 -0
  158. package/skills/agentvfx/templates/brutal/halftone-field/main.frag +248 -0
  159. package/skills/agentvfx/templates/brutal/hud-deck/demo-acid.json +1 -0
  160. package/skills/agentvfx/templates/brutal/hud-deck/demo-night.json +1 -0
  161. package/skills/agentvfx/templates/brutal/hud-deck/demo-octagon.json +1 -0
  162. package/skills/agentvfx/templates/brutal/hud-deck/demo-ultramarine.json +1 -0
  163. package/skills/agentvfx/templates/brutal/hud-deck/fx.json +601 -0
  164. package/skills/agentvfx/templates/brutal/hud-deck/main.frag +645 -0
  165. package/skills/agentvfx/templates/brutal/hud-deck/pass0.frag +38 -0
  166. package/skills/agentvfx/templates/brutal/lattice/demo-cobalt-fine.json +1 -0
  167. package/skills/agentvfx/templates/brutal/lattice/demo-ink-yellow.json +1 -0
  168. package/skills/agentvfx/templates/brutal/lattice/demo-vermilion.json +1 -0
  169. package/skills/agentvfx/templates/brutal/lattice/demo-violet-slow.json +1 -0
  170. package/skills/agentvfx/templates/brutal/lattice/fx.json +130 -0
  171. package/skills/agentvfx/templates/brutal/lattice/main.frag +175 -0
  172. package/skills/agentvfx/templates/brutal/lattice/pass0.frag +29 -0
  173. package/skills/agentvfx/templates/glitch/block-glitch/demo-mosaic.json +1 -0
  174. package/skills/agentvfx/templates/glitch/block-glitch/demo-onset.json +1 -0
  175. package/skills/agentvfx/templates/glitch/block-glitch/demo-static.json +1 -0
  176. package/skills/agentvfx/templates/glitch/block-glitch/demo-tear.json +1 -0
  177. package/skills/agentvfx/templates/glitch/block-glitch/fx.json +54 -0
  178. package/skills/agentvfx/templates/glitch/block-glitch/main.frag +132 -0
  179. package/skills/agentvfx/templates/glitch/block-glitch/pass0.frag +12 -0
  180. package/skills/agentvfx/templates/glitch/pixel-sort/NOTES.md +13 -0
  181. package/skills/agentvfx/templates/glitch/pixel-sort/build-passes.mjs +162 -0
  182. package/skills/agentvfx/templates/glitch/pixel-sort/demo-chunk.json +1 -0
  183. package/skills/agentvfx/templates/glitch/pixel-sort/demo-hue.json +1 -0
  184. package/skills/agentvfx/templates/glitch/pixel-sort/demo-kick.json +1 -0
  185. package/skills/agentvfx/templates/glitch/pixel-sort/demo-streak.json +1 -0
  186. package/skills/agentvfx/templates/glitch/pixel-sort/demo-vertical.json +1 -0
  187. package/skills/agentvfx/templates/glitch/pixel-sort/fx.json +60 -0
  188. package/skills/agentvfx/templates/glitch/pixel-sort/main.frag +83 -0
  189. package/skills/agentvfx/templates/glitch/pixel-sort/pass0.frag +64 -0
  190. package/skills/agentvfx/templates/glitch/pixel-sort/pass1.frag +66 -0
  191. package/skills/agentvfx/templates/glitch/pixel-sort/pass2.frag +66 -0
  192. package/skills/agentvfx/templates/glitch/pixel-sort/pass3.frag +66 -0
  193. package/skills/agentvfx/templates/glitch/pixel-sort/pass4.frag +66 -0
  194. package/skills/agentvfx/templates/glitch/pixel-sort/pass5.frag +66 -0
  195. package/skills/agentvfx/templates/glitch/pixel-sort/pass6.frag +66 -0
  196. package/skills/agentvfx/templates/glitch/pixel-sort/pass7.frag +66 -0
  197. package/skills/agentvfx/templates/glitch/pixel-sort/pass8.frag +66 -0
  198. package/skills/agentvfx/templates/glitch/rgb-split/demo-diagonal-stutter.json +1 -0
  199. package/skills/agentvfx/templates/glitch/rgb-split/demo-hard.json +1 -0
  200. package/skills/agentvfx/templates/glitch/rgb-split/demo-kick.json +1 -0
  201. package/skills/agentvfx/templates/glitch/rgb-split/demo-radial.json +1 -0
  202. package/skills/agentvfx/templates/glitch/rgb-split/fx.json +46 -0
  203. package/skills/agentvfx/templates/glitch/rgb-split/main.frag +76 -0
  204. package/skills/agentvfx/templates/glitch/vhs/demo-clean.json +1 -0
  205. package/skills/agentvfx/templates/glitch/vhs/demo-crash.json +1 -0
  206. package/skills/agentvfx/templates/glitch/vhs/demo-tape.json +1 -0
  207. package/skills/agentvfx/templates/glitch/vhs/demo-worn.json +1 -0
  208. package/skills/agentvfx/templates/glitch/vhs/fx.json +46 -0
  209. package/skills/agentvfx/templates/glitch/vhs/main.frag +96 -0
  210. package/skills/agentvfx/templates/impact/impact-1bit/demo-onebit-bayer.json +1 -0
  211. package/skills/agentvfx/templates/impact/impact-1bit/fx.json +45 -0
  212. package/skills/agentvfx/templates/impact/impact-1bit/main.frag +64 -0
  213. package/skills/agentvfx/templates/impact/impact-invert/demo-invert-snap.json +1 -0
  214. package/skills/agentvfx/templates/impact/impact-invert/fx.json +37 -0
  215. package/skills/agentvfx/templates/impact/impact-invert/main.frag +44 -0
  216. package/skills/agentvfx/templates/impact/punch-shake/demo-punch-hard.json +1 -0
  217. package/skills/agentvfx/templates/impact/punch-shake/fx.json +36 -0
  218. package/skills/agentvfx/templates/impact/punch-shake/main.frag +62 -0
  219. package/skills/agentvfx/templates/impact/rgb-hit/demo-rgb-slam.json +1 -0
  220. package/skills/agentvfx/templates/impact/rgb-hit/fx.json +39 -0
  221. package/skills/agentvfx/templates/impact/rgb-hit/main.frag +62 -0
  222. package/skills/agentvfx/templates/impact/signal-cut/demo-lime-hold.json +1 -0
  223. package/skills/agentvfx/templates/impact/signal-cut/demo-lime.json +1 -0
  224. package/skills/agentvfx/templates/impact/signal-cut/demo-orange.json +1 -0
  225. package/skills/agentvfx/templates/impact/signal-cut/demo-ultramarine.json +1 -0
  226. package/skills/agentvfx/templates/impact/signal-cut/fx.json +83 -0
  227. package/skills/agentvfx/templates/impact/signal-cut/main.frag +101 -0
  228. package/skills/agentvfx/templates/impact/signal-cut/pass0.frag +68 -0
  229. package/skills/agentvfx/templates/impact/speedline-burst/demo-speed-white.json +1 -0
  230. package/skills/agentvfx/templates/impact/speedline-burst/fx.json +44 -0
  231. package/skills/agentvfx/templates/impact/speedline-burst/main.frag +68 -0
  232. package/skills/agentvfx/templates/impact/strobe-burst/demo-strobe-white-16.json +1 -0
  233. package/skills/agentvfx/templates/impact/strobe-burst/fx.json +42 -0
  234. package/skills/agentvfx/templates/impact/strobe-burst/main.frag +43 -0
  235. package/skills/agentvfx/templates/light/anamorphic-streak/demo-anamorphic-cinema.json +10 -0
  236. package/skills/agentvfx/templates/light/anamorphic-streak/demo-data.json +10 -0
  237. package/skills/agentvfx/templates/light/anamorphic-streak/fx.json +47 -0
  238. package/skills/agentvfx/templates/light/anamorphic-streak/main.frag +45 -0
  239. package/skills/agentvfx/templates/light/anamorphic-streak/pass0.frag +22 -0
  240. package/skills/agentvfx/templates/light/anamorphic-streak/pass1.frag +16 -0
  241. package/skills/agentvfx/templates/light/anamorphic-streak/pass2.frag +16 -0
  242. package/skills/agentvfx/templates/light/anamorphic-streak/pass3.frag +16 -0
  243. package/skills/agentvfx/templates/light/bloom-glow/demo-clip01-low.json +11 -0
  244. package/skills/agentvfx/templates/light/bloom-glow/demo-neon-night.json +10 -0
  245. package/skills/agentvfx/templates/light/bloom-glow/demo-phosphor.json +11 -0
  246. package/skills/agentvfx/templates/light/bloom-glow/fx.json +53 -0
  247. package/skills/agentvfx/templates/light/bloom-glow/main.frag +85 -0
  248. package/skills/agentvfx/templates/light/bloom-glow/pass0.frag +21 -0
  249. package/skills/agentvfx/templates/light/bloom-glow/pass1.frag +50 -0
  250. package/skills/agentvfx/templates/light/bloom-glow/pass2.frag +44 -0
  251. package/skills/agentvfx/templates/light/bloom-glow/pass3.frag +32 -0
  252. package/skills/agentvfx/templates/light/bloom-glow/pass4.frag +48 -0
  253. package/skills/agentvfx/templates/light/bloom-glow/pass5.frag +46 -0
  254. package/skills/agentvfx/templates/light/god-rays/demo-golden-hour.json +10 -0
  255. package/skills/agentvfx/templates/light/god-rays/demo-point-lamp.json +10 -0
  256. package/skills/agentvfx/templates/light/god-rays/fx.json +39 -0
  257. package/skills/agentvfx/templates/light/god-rays/main.frag +54 -0
  258. package/skills/agentvfx/templates/light/lens-flare/demo-clip01-bar.json +11 -0
  259. package/skills/agentvfx/templates/light/lens-flare/demo-eye-bar.json +10 -0
  260. package/skills/agentvfx/templates/light/lens-flare/demo-sun-ghosts.json +10 -0
  261. package/skills/agentvfx/templates/light/lens-flare/fx.json +49 -0
  262. package/skills/agentvfx/templates/light/lens-flare/main.frag +86 -0
  263. package/skills/agentvfx/templates/light/lens-flare/pass0.frag +24 -0
  264. package/skills/agentvfx/templates/light/light-leak/demo-slit.json +10 -0
  265. package/skills/agentvfx/templates/light/light-leak/demo-vintage-burn.json +10 -0
  266. package/skills/agentvfx/templates/light/light-leak/fx.json +40 -0
  267. package/skills/agentvfx/templates/light/light-leak/main.frag +46 -0
  268. package/skills/agentvfx/templates/light/light-stage/fx.json +29 -0
  269. package/skills/agentvfx/templates/light/light-stage/main.frag +56 -0
  270. package/skills/agentvfx/templates/light/light-sweep/demo-hard-bar.json +12 -0
  271. package/skills/agentvfx/templates/light/light-sweep/demo-logo-sweep.json +10 -0
  272. package/skills/agentvfx/templates/light/light-sweep/demo-onset.json +11 -0
  273. package/skills/agentvfx/templates/light/light-sweep/fx.json +45 -0
  274. package/skills/agentvfx/templates/light/light-sweep/main.frag +29 -0
  275. package/skills/agentvfx/templates/light/light-sweep/pass0.frag +17 -0
  276. package/skills/agentvfx/templates/light/light-sweep/pass1.frag +15 -0
  277. package/skills/agentvfx/templates/light/neon-saber/demo-hairline.json +10 -0
  278. package/skills/agentvfx/templates/light/neon-saber/demo-saber-laser.json +10 -0
  279. package/skills/agentvfx/templates/light/neon-saber/fx.json +48 -0
  280. package/skills/agentvfx/templates/light/neon-saber/main.frag +27 -0
  281. package/skills/agentvfx/templates/light/neon-saber/pass0.frag +46 -0
  282. package/skills/agentvfx/templates/light/neon-saber/pass1.frag +15 -0
  283. package/skills/agentvfx/templates/psychedelic/echo-flow/demo-trail.json +1 -0
  284. package/skills/agentvfx/templates/psychedelic/echo-flow/fx.json +38 -0
  285. package/skills/agentvfx/templates/psychedelic/echo-flow/main.frag +19 -0
  286. package/skills/agentvfx/templates/psychedelic/echo-flow/pass0.frag +16 -0
  287. package/skills/agentvfx/templates/psychedelic/echo-flow/pass1.frag +20 -0
  288. package/skills/agentvfx/templates/psychedelic/echo-flow/pass2.frag +11 -0
  289. package/skills/agentvfx/templates/psychedelic/echo-flow/pass3.frag +4 -0
  290. package/skills/agentvfx/templates/psychedelic/hologram-scan/demo-cyan.json +1 -0
  291. package/skills/agentvfx/templates/psychedelic/hologram-scan/fx.json +36 -0
  292. package/skills/agentvfx/templates/psychedelic/hologram-scan/main.frag +30 -0
  293. package/skills/agentvfx/templates/psychedelic/kaleido-fold/demo-six.json +1 -0
  294. package/skills/agentvfx/templates/psychedelic/kaleido-fold/fx.json +37 -0
  295. package/skills/agentvfx/templates/psychedelic/kaleido-fold/main.frag +10 -0
  296. package/skills/agentvfx/templates/psychedelic/kaleido-fold/pass0.frag +34 -0
  297. package/skills/agentvfx/templates/psychedelic/mosh-melt/demo-classic.json +1 -0
  298. package/skills/agentvfx/templates/psychedelic/mosh-melt/fx.json +38 -0
  299. package/skills/agentvfx/templates/psychedelic/mosh-melt/main.frag +20 -0
  300. package/skills/agentvfx/templates/psychedelic/mosh-melt/pass0.frag +22 -0
  301. package/skills/agentvfx/templates/psychedelic/sacred/NOTES.md +13 -0
  302. package/skills/agentvfx/templates/psychedelic/sacred/demo-classic.json +1 -0
  303. package/skills/agentvfx/templates/psychedelic/sacred/demo-halo.json +1 -0
  304. package/skills/agentvfx/templates/psychedelic/sacred/demo-slow-tide.json +1 -0
  305. package/skills/agentvfx/templates/psychedelic/sacred/demo-thermal.json +1 -0
  306. package/skills/agentvfx/templates/psychedelic/sacred/fx.json +263 -0
  307. package/skills/agentvfx/templates/psychedelic/sacred/main.frag +109 -0
  308. package/skills/agentvfx/templates/psychedelic/sacred/pass0.frag +25 -0
  309. package/skills/agentvfx/templates/psychedelic/sacred/pass1.frag +23 -0
  310. package/skills/agentvfx/templates/psychedelic/tidal-bands/demo-classic.json +1 -0
  311. package/skills/agentvfx/templates/psychedelic/tidal-bands/fx.json +37 -0
  312. package/skills/agentvfx/templates/psychedelic/tidal-bands/main.frag +54 -0
  313. package/skills/agentvfx/templates/scope/_chrome.glsl +242 -0
  314. package/skills/agentvfx/templates/scope/goniometer/demo-boot-green.json +1 -0
  315. package/skills/agentvfx/templates/scope/goniometer/demo-field-lime.json +1 -0
  316. package/skills/agentvfx/templates/scope/goniometer/demo-field-ultramarine.json +1 -0
  317. package/skills/agentvfx/templates/scope/goniometer/demo-glow-phosphor.json +1 -0
  318. package/skills/agentvfx/templates/scope/goniometer/demo-hud-black.json +1 -0
  319. package/skills/agentvfx/templates/scope/goniometer/fx.json +635 -0
  320. package/skills/agentvfx/templates/scope/goniometer/main.frag +33 -0
  321. package/skills/agentvfx/templates/scope/goniometer/pass0.frag +58 -0
  322. package/skills/agentvfx/templates/scope/goniometer/pass1.frag +43 -0
  323. package/skills/agentvfx/templates/scope/goniometer/pass2.frag +12 -0
  324. package/skills/agentvfx/templates/scope/goniometer/pass3.frag +12 -0
  325. package/skills/agentvfx/templates/scope/goniometer/pass4.frag +12 -0
  326. package/skills/agentvfx/templates/scope/goniometer/pass5.frag +12 -0
  327. package/skills/agentvfx/templates/scope/goniometer/pass6.frag +251 -0
  328. package/skills/agentvfx/templates/scope/scope-polar/demo-boot-green.json +1 -0
  329. package/skills/agentvfx/templates/scope/scope-polar/demo-field-lime.json +1 -0
  330. package/skills/agentvfx/templates/scope/scope-polar/demo-field-ultramarine.json +1 -0
  331. package/skills/agentvfx/templates/scope/scope-polar/demo-glow-phosphor.json +1 -0
  332. package/skills/agentvfx/templates/scope/scope-polar/demo-hud-black.json +1 -0
  333. package/skills/agentvfx/templates/scope/scope-polar/fx.json +686 -0
  334. package/skills/agentvfx/templates/scope/scope-polar/main.frag +39 -0
  335. package/skills/agentvfx/templates/scope/scope-polar/pass0.frag +84 -0
  336. package/skills/agentvfx/templates/scope/scope-polar/pass1.frag +49 -0
  337. package/skills/agentvfx/templates/scope/scope-polar/pass2.frag +12 -0
  338. package/skills/agentvfx/templates/scope/scope-polar/pass3.frag +12 -0
  339. package/skills/agentvfx/templates/scope/scope-polar/pass4.frag +12 -0
  340. package/skills/agentvfx/templates/scope/scope-polar/pass5.frag +12 -0
  341. package/skills/agentvfx/templates/scope/scope-polar/pass6.frag +251 -0
  342. package/skills/agentvfx/templates/scope/scope-triggered/demo-boot-green.json +1 -0
  343. package/skills/agentvfx/templates/scope/scope-triggered/demo-field-lime.json +1 -0
  344. package/skills/agentvfx/templates/scope/scope-triggered/demo-field-ultramarine.json +1 -0
  345. package/skills/agentvfx/templates/scope/scope-triggered/demo-glow-phosphor.json +1 -0
  346. package/skills/agentvfx/templates/scope/scope-triggered/demo-hud-black.json +1 -0
  347. package/skills/agentvfx/templates/scope/scope-triggered/fx.json +712 -0
  348. package/skills/agentvfx/templates/scope/scope-triggered/main.frag +36 -0
  349. package/skills/agentvfx/templates/scope/scope-triggered/pass0.frag +78 -0
  350. package/skills/agentvfx/templates/scope/scope-triggered/pass1.frag +50 -0
  351. package/skills/agentvfx/templates/scope/scope-triggered/pass2.frag +12 -0
  352. package/skills/agentvfx/templates/scope/scope-triggered/pass3.frag +12 -0
  353. package/skills/agentvfx/templates/scope/scope-triggered/pass4.frag +12 -0
  354. package/skills/agentvfx/templates/scope/scope-triggered/pass5.frag +12 -0
  355. package/skills/agentvfx/templates/scope/scope-triggered/pass6.frag +251 -0
  356. package/skills/agentvfx/templates/scope/spectrogram-scroll/demo-boot-green.json +1 -0
  357. package/skills/agentvfx/templates/scope/spectrogram-scroll/demo-field-lime.json +1 -0
  358. package/skills/agentvfx/templates/scope/spectrogram-scroll/demo-field-ultramarine.json +1 -0
  359. package/skills/agentvfx/templates/scope/spectrogram-scroll/demo-glow-phosphor.json +1 -0
  360. package/skills/agentvfx/templates/scope/spectrogram-scroll/demo-hud-black.json +1 -0
  361. package/skills/agentvfx/templates/scope/spectrogram-scroll/fx.json +595 -0
  362. package/skills/agentvfx/templates/scope/spectrogram-scroll/main.frag +83 -0
  363. package/skills/agentvfx/templates/scope/spectrogram-scroll/pass0.frag +52 -0
  364. package/skills/agentvfx/templates/scope/spectrogram-scroll/pass1.frag +251 -0
  365. package/skills/agentvfx/templates/scope/xy-phosphor/demo-boot-green.json +1 -0
  366. package/skills/agentvfx/templates/scope/xy-phosphor/demo-field-lime.json +1 -0
  367. package/skills/agentvfx/templates/scope/xy-phosphor/demo-field-ultramarine.json +1 -0
  368. package/skills/agentvfx/templates/scope/xy-phosphor/demo-glow-phosphor.json +1 -0
  369. package/skills/agentvfx/templates/scope/xy-phosphor/demo-hud-black.json +1 -0
  370. package/skills/agentvfx/templates/scope/xy-phosphor/fx.json +642 -0
  371. package/skills/agentvfx/templates/scope/xy-phosphor/main.frag +33 -0
  372. package/skills/agentvfx/templates/scope/xy-phosphor/pass0.frag +56 -0
  373. package/skills/agentvfx/templates/scope/xy-phosphor/pass1.frag +44 -0
  374. package/skills/agentvfx/templates/scope/xy-phosphor/pass2.frag +12 -0
  375. package/skills/agentvfx/templates/scope/xy-phosphor/pass3.frag +12 -0
  376. package/skills/agentvfx/templates/scope/xy-phosphor/pass4.frag +12 -0
  377. package/skills/agentvfx/templates/scope/xy-phosphor/pass5.frag +12 -0
  378. package/skills/agentvfx/templates/scope/xy-phosphor/pass6.frag +251 -0
  379. package/skills/agentvfx/templates/spectrum/_src/bars-linear/fx.src.json +61 -0
  380. package/skills/agentvfx/templates/spectrum/_src/bars-linear/main.src.frag +112 -0
  381. package/skills/agentvfx/templates/spectrum/_src/bars-linear/pass0.src.frag +2 -0
  382. package/skills/agentvfx/templates/spectrum/_src/bars-mirror/fx.src.json +51 -0
  383. package/skills/agentvfx/templates/spectrum/_src/bars-mirror/main.src.frag +72 -0
  384. package/skills/agentvfx/templates/spectrum/_src/bars-mirror/pass0.src.frag +2 -0
  385. package/skills/agentvfx/templates/spectrum/_src/bass-circle/fx.src.json +56 -0
  386. package/skills/agentvfx/templates/spectrum/_src/bass-circle/main.src.frag +136 -0
  387. package/skills/agentvfx/templates/spectrum/_src/bass-circle/pass0.src.frag +2 -0
  388. package/skills/agentvfx/templates/spectrum/_src/build.mjs +68 -0
  389. package/skills/agentvfx/templates/spectrum/_src/label-bars/fx.src.json +54 -0
  390. package/skills/agentvfx/templates/spectrum/_src/label-bars/main.src.frag +102 -0
  391. package/skills/agentvfx/templates/spectrum/_src/label-bars/pass0.src.frag +2 -0
  392. package/skills/agentvfx/templates/spectrum/_src/shared/bars-fn.glsl +64 -0
  393. package/skills/agentvfx/templates/spectrum/_src/shared/bars-pass.glsl +22 -0
  394. package/skills/agentvfx/templates/spectrum/_src/shared/clock.glsl +7 -0
  395. package/skills/agentvfx/templates/spectrum/_src/shared/hud.glsl +50 -0
  396. package/skills/agentvfx/templates/spectrum/_src/shared/stage.glsl +74 -0
  397. package/skills/agentvfx/templates/spectrum/_src/spectrum-particles/fx.src.json +58 -0
  398. package/skills/agentvfx/templates/spectrum/_src/spectrum-particles/main.src.frag +119 -0
  399. package/skills/agentvfx/templates/spectrum/_src/spectrum-particles/pass0.src.frag +33 -0
  400. package/skills/agentvfx/templates/spectrum/_src/spectrum-radial/fx.src.json +56 -0
  401. package/skills/agentvfx/templates/spectrum/_src/spectrum-radial/main.src.frag +95 -0
  402. package/skills/agentvfx/templates/spectrum/_src/spectrum-radial/pass0.src.frag +2 -0
  403. package/skills/agentvfx/templates/spectrum/_src/waveform-line/fx.src.json +60 -0
  404. package/skills/agentvfx/templates/spectrum/_src/waveform-line/main.src.frag +98 -0
  405. package/skills/agentvfx/templates/spectrum/_src/waveform-line/pass0.src.frag +43 -0
  406. package/skills/agentvfx/templates/spectrum/bars-linear/demo-graph-acid.json +1 -0
  407. package/skills/agentvfx/templates/spectrum/bars-linear/demo-graph-black.json +1 -0
  408. package/skills/agentvfx/templates/spectrum/bars-linear/fx.json +632 -0
  409. package/skills/agentvfx/templates/spectrum/bars-linear/main.frag +233 -0
  410. package/skills/agentvfx/templates/spectrum/bars-linear/pass0.frag +91 -0
  411. package/skills/agentvfx/templates/spectrum/bars-mirror/demo-field-acid.json +1 -0
  412. package/skills/agentvfx/templates/spectrum/bars-mirror/demo-field-ultramarine.json +1 -0
  413. package/skills/agentvfx/templates/spectrum/bars-mirror/fx.json +539 -0
  414. package/skills/agentvfx/templates/spectrum/bars-mirror/main.frag +193 -0
  415. package/skills/agentvfx/templates/spectrum/bars-mirror/pass0.frag +91 -0
  416. package/skills/agentvfx/templates/spectrum/bass-circle/demo-bracket-black.json +1 -0
  417. package/skills/agentvfx/templates/spectrum/bass-circle/demo-bracket-ultramarine.json +1 -0
  418. package/skills/agentvfx/templates/spectrum/bass-circle/fx.json +552 -0
  419. package/skills/agentvfx/templates/spectrum/bass-circle/main.frag +258 -0
  420. package/skills/agentvfx/templates/spectrum/bass-circle/pass0.frag +91 -0
  421. package/skills/agentvfx/templates/spectrum/label-bars/demo-deck-black.json +1 -0
  422. package/skills/agentvfx/templates/spectrum/label-bars/demo-deck-ultramarine.json +1 -0
  423. package/skills/agentvfx/templates/spectrum/label-bars/fx.json +552 -0
  424. package/skills/agentvfx/templates/spectrum/label-bars/main.frag +223 -0
  425. package/skills/agentvfx/templates/spectrum/label-bars/pass0.frag +91 -0
  426. package/skills/agentvfx/templates/spectrum/spectrum-particles/demo-cloud-black.json +1 -0
  427. package/skills/agentvfx/templates/spectrum/spectrum-particles/demo-cloud-ultramarine.json +1 -0
  428. package/skills/agentvfx/templates/spectrum/spectrum-particles/fx.json +584 -0
  429. package/skills/agentvfx/templates/spectrum/spectrum-particles/main.frag +240 -0
  430. package/skills/agentvfx/templates/spectrum/spectrum-particles/pass0.frag +101 -0
  431. package/skills/agentvfx/templates/spectrum/spectrum-radial/demo-starburst-black.json +1 -0
  432. package/skills/agentvfx/templates/spectrum/spectrum-radial/demo-starburst-ultramarine.json +1 -0
  433. package/skills/agentvfx/templates/spectrum/spectrum-radial/fx.json +566 -0
  434. package/skills/agentvfx/templates/spectrum/spectrum-radial/main.frag +217 -0
  435. package/skills/agentvfx/templates/spectrum/spectrum-radial/pass0.frag +91 -0
  436. package/skills/agentvfx/templates/spectrum/waveform-line/demo-strip-acid.json +1 -0
  437. package/skills/agentvfx/templates/spectrum/waveform-line/demo-strip-black.json +1 -0
  438. package/skills/agentvfx/templates/spectrum/waveform-line/fx.json +481 -0
  439. package/skills/agentvfx/templates/spectrum/waveform-line/main.frag +219 -0
  440. package/skills/agentvfx/templates/spectrum/waveform-line/pass0.frag +48 -0
  441. package/skills/agentvfx/templates/spectrum/waveform-line/pass1.frag +86 -0
  442. package/skills/agentvfx/test/_render_light.mjs +38 -0
  443. package/skills/agentvfx/test/audio-stereo.test.mjs +45 -0
  444. package/skills/agentvfx/test/audio.test.mjs +257 -0
  445. package/skills/agentvfx/test/brutal.test.mjs +190 -0
  446. package/skills/agentvfx/test/concept-collage-layout.test.mjs +236 -0
  447. package/skills/agentvfx/test/concept-collage-scenes.test.mjs +305 -0
  448. package/skills/agentvfx/test/concept-collage-typefx.test.mjs +153 -0
  449. package/skills/agentvfx/test/concept-collage.test.mjs +84 -0
  450. package/skills/agentvfx/test/concept-lattice.test.mjs +133 -0
  451. package/skills/agentvfx/test/concept-signal-cut.test.mjs +172 -0
  452. package/skills/agentvfx/test/credit-overlay.test.mjs +58 -0
  453. package/skills/agentvfx/test/credit.test.mjs +54 -0
  454. package/skills/agentvfx/test/doctor.test.mjs +31 -0
  455. package/skills/agentvfx/test/encode.test.mjs +22 -0
  456. package/skills/agentvfx/test/fixtures/r7-collage-LAYOUTS.json +5780 -0
  457. package/skills/agentvfx/test/fixtures/score-bad-duration.json +7 -0
  458. package/skills/agentvfx/test/fixtures/score-bad-safety.json +8 -0
  459. package/skills/agentvfx/test/fixtures/score-identity-footage.json +8 -0
  460. package/skills/agentvfx/test/fixtures/score-missing-template.json +7 -0
  461. package/skills/agentvfx/test/fixtures/score-ok.json +8 -0
  462. package/skills/agentvfx/test/fixtures/score-strobe-12hz.json +8 -0
  463. package/skills/agentvfx/test/fixtures/score-text-probe.json +1 -0
  464. package/skills/agentvfx/test/flash-audit.test.mjs +150 -0
  465. package/skills/agentvfx/test/flash.test.mjs +83 -0
  466. package/skills/agentvfx/test/footage.test.mjs +88 -0
  467. package/skills/agentvfx/test/glitch.test.mjs +272 -0
  468. package/skills/agentvfx/test/impact.test.mjs +231 -0
  469. package/skills/agentvfx/test/imports.test.mjs +39 -0
  470. package/skills/agentvfx/test/light.test.mjs +200 -0
  471. package/skills/agentvfx/test/loop.test.mjs +80 -0
  472. package/skills/agentvfx/test/psychedelic.test.mjs +99 -0
  473. package/skills/agentvfx/test/render.test.mjs +73 -0
  474. package/skills/agentvfx/test/sacred.test.mjs +175 -0
  475. package/skills/agentvfx/test/schema.test.mjs +103 -0
  476. package/skills/agentvfx/test/scope.test.mjs +306 -0
  477. package/skills/agentvfx/test/spectrum.test.mjs +165 -0
  478. package/skills/agentvfx/test/text.test.mjs +142 -0
  479. package/skills/agentvfx/test/web.test.mjs +400 -0
  480. package/skills/agentvfx/test-media/SOURCES.md +39 -0
  481. package/skills/agentvfx/test-media/beat-132.mp3 +0 -0
  482. package/skills/agentvfx/test-media/clip-01.mp4 +0 -0
  483. package/skills/agentvfx/test-media/clip-02.mp4 +0 -0
@@ -0,0 +1,481 @@
1
+ {
2
+ "DESCRIPTION": "Waveform strip instrument: framed panel with a 0..5 ruler, dashed axis and a smoothed multi-layer hairline waveform (line, hair columns or dots)",
3
+ "CREDIT": "agentvfx",
4
+ "ISFVSN": "2",
5
+ "CATEGORIES": [
6
+ "spectrum",
7
+ "audio",
8
+ "hud"
9
+ ],
10
+ "INPUTS": [
11
+ {
12
+ "NAME": "amplitude",
13
+ "TYPE": "float",
14
+ "MIN": 0.05,
15
+ "MAX": 0.5,
16
+ "DEFAULT": 0.5
17
+ },
18
+ {
19
+ "NAME": "gain",
20
+ "TYPE": "float",
21
+ "MIN": 0.5,
22
+ "MAX": 12,
23
+ "DEFAULT": 8
24
+ },
25
+ {
26
+ "NAME": "smoothWin",
27
+ "TYPE": "float",
28
+ "MIN": 1,
29
+ "MAX": 200,
30
+ "DEFAULT": 60
31
+ },
32
+ {
33
+ "NAME": "flow",
34
+ "TYPE": "float",
35
+ "MIN": 0,
36
+ "MAX": 1,
37
+ "DEFAULT": 0.35
38
+ },
39
+ {
40
+ "NAME": "pinch",
41
+ "TYPE": "float",
42
+ "MIN": 0,
43
+ "MAX": 4,
44
+ "DEFAULT": 0.8
45
+ },
46
+ {
47
+ "NAME": "layers",
48
+ "TYPE": "long",
49
+ "MIN": 1,
50
+ "MAX": 8,
51
+ "DEFAULT": 4
52
+ },
53
+ {
54
+ "NAME": "layerDelay",
55
+ "TYPE": "long",
56
+ "MIN": 1,
57
+ "MAX": 3,
58
+ "DEFAULT": 2
59
+ },
60
+ {
61
+ "NAME": "displayMode",
62
+ "TYPE": "long",
63
+ "MIN": 0,
64
+ "MAX": 2,
65
+ "VALUES": [
66
+ 0,
67
+ 1,
68
+ 2
69
+ ],
70
+ "LABELS": [
71
+ "line",
72
+ "hair-columns",
73
+ "dots"
74
+ ],
75
+ "DEFAULT": 0
76
+ },
77
+ {
78
+ "NAME": "columns",
79
+ "TYPE": "long",
80
+ "MIN": 16,
81
+ "MAX": 400,
82
+ "DEFAULT": 240
83
+ },
84
+ {
85
+ "NAME": "mirror",
86
+ "TYPE": "bool",
87
+ "DEFAULT": false
88
+ },
89
+ {
90
+ "NAME": "hitBoost",
91
+ "TYPE": "float",
92
+ "MIN": 0,
93
+ "MAX": 1,
94
+ "DEFAULT": 1
95
+ },
96
+ {
97
+ "NAME": "kickZoom",
98
+ "TYPE": "float",
99
+ "MIN": 0,
100
+ "MAX": 0.15,
101
+ "DEFAULT": 0
102
+ },
103
+ {
104
+ "NAME": "kickDecayMs",
105
+ "TYPE": "float",
106
+ "MIN": 30,
107
+ "MAX": 600,
108
+ "DEFAULT": 120
109
+ },
110
+ {
111
+ "NAME": "kickBass",
112
+ "TYPE": "float",
113
+ "MIN": 0,
114
+ "MAX": 6,
115
+ "DEFAULT": 1.6
116
+ },
117
+ {
118
+ "NAME": "shake",
119
+ "TYPE": "float",
120
+ "MIN": 0,
121
+ "MAX": 24,
122
+ "DEFAULT": 0
123
+ },
124
+ {
125
+ "NAME": "bgMode",
126
+ "TYPE": "long",
127
+ "MIN": 0,
128
+ "MAX": 2,
129
+ "VALUES": [
130
+ 0,
131
+ 1,
132
+ 2
133
+ ],
134
+ "LABELS": [
135
+ "flat",
136
+ "blurred-footage",
137
+ "halftone-footage"
138
+ ],
139
+ "DEFAULT": 2
140
+ },
141
+ {
142
+ "NAME": "bgDim",
143
+ "TYPE": "float",
144
+ "MIN": 0,
145
+ "MAX": 1,
146
+ "DEFAULT": 0.16
147
+ },
148
+ {
149
+ "NAME": "halftoneSize",
150
+ "TYPE": "float",
151
+ "MIN": 3,
152
+ "MAX": 24,
153
+ "DEFAULT": 7
154
+ },
155
+ {
156
+ "NAME": "fieldAmount",
157
+ "TYPE": "float",
158
+ "MIN": 0,
159
+ "MAX": 1,
160
+ "DEFAULT": 0
161
+ },
162
+ {
163
+ "NAME": "fieldSpeed",
164
+ "TYPE": "float",
165
+ "MIN": 0,
166
+ "MAX": 4,
167
+ "DEFAULT": 1
168
+ },
169
+ {
170
+ "NAME": "vignette",
171
+ "TYPE": "float",
172
+ "MIN": 0,
173
+ "MAX": 1,
174
+ "DEFAULT": 0
175
+ },
176
+ {
177
+ "NAME": "grain",
178
+ "TYPE": "float",
179
+ "MIN": 0,
180
+ "MAX": 0.12,
181
+ "DEFAULT": 0.02
182
+ },
183
+ {
184
+ "NAME": "introMs",
185
+ "TYPE": "float",
186
+ "MIN": 0,
187
+ "MAX": 2000,
188
+ "DEFAULT": 500
189
+ },
190
+ {
191
+ "NAME": "hitFlux",
192
+ "TYPE": "float",
193
+ "MIN": 0,
194
+ "MAX": 2,
195
+ "DEFAULT": 0.9
196
+ },
197
+ {
198
+ "NAME": "groundColor",
199
+ "TYPE": "color",
200
+ "DEFAULT": [
201
+ 0.043,
202
+ 0.043,
203
+ 0.047,
204
+ 1
205
+ ]
206
+ },
207
+ {
208
+ "NAME": "inkColor",
209
+ "TYPE": "color",
210
+ "DEFAULT": [
211
+ 0.914,
212
+ 0.914,
213
+ 0.894,
214
+ 1
215
+ ]
216
+ },
217
+ {
218
+ "NAME": "accentColor",
219
+ "TYPE": "color",
220
+ "DEFAULT": [
221
+ 0.784,
222
+ 1,
223
+ 0,
224
+ 1
225
+ ]
226
+ },
227
+ {
228
+ "NAME": "lineWidth",
229
+ "TYPE": "float",
230
+ "MIN": 0.8,
231
+ "MAX": 4,
232
+ "DEFAULT": 1.5
233
+ },
234
+ {
235
+ "NAME": "gridAmount",
236
+ "TYPE": "float",
237
+ "MIN": 0,
238
+ "MAX": 1,
239
+ "DEFAULT": 1
240
+ },
241
+ {
242
+ "NAME": "colorMode",
243
+ "TYPE": "long",
244
+ "MIN": 0,
245
+ "MAX": 1,
246
+ "VALUES": [
247
+ 0,
248
+ 1
249
+ ],
250
+ "LABELS": [
251
+ "accent",
252
+ "palette-by-frequency"
253
+ ],
254
+ "DEFAULT": 0
255
+ },
256
+ {
257
+ "NAME": "paletteShift",
258
+ "TYPE": "float",
259
+ "MIN": 0,
260
+ "MAX": 1,
261
+ "DEFAULT": 0
262
+ },
263
+ {
264
+ "NAME": "glow",
265
+ "TYPE": "float",
266
+ "MIN": 0,
267
+ "MAX": 3,
268
+ "DEFAULT": 0
269
+ },
270
+ {
271
+ "NAME": "glowRadius",
272
+ "TYPE": "float",
273
+ "MIN": 0.002,
274
+ "MAX": 0.1,
275
+ "DEFAULT": 0.012
276
+ },
277
+ {
278
+ "NAME": "marks",
279
+ "TYPE": "bool",
280
+ "DEFAULT": true
281
+ }
282
+ ],
283
+ "PASSES": [
284
+ {
285
+ "TARGET": "wstate",
286
+ "PERSISTENT": true,
287
+ "FLOAT": true
288
+ },
289
+ {}
290
+ ],
291
+ "X_AGENTVFX": {
292
+ "id": "waveform-line",
293
+ "family": "spectrum",
294
+ "input": "either",
295
+ "spdx": "Apache-2.0",
296
+ "flash": "none",
297
+ "fps": 30,
298
+ "palette": true,
299
+ "presets": {
300
+ "strip-black": {},
301
+ "hair-columns": {
302
+ "displayMode": 1,
303
+ "mirror": true,
304
+ "layers": 2
305
+ },
306
+ "strip-ultramarine": {
307
+ "groundColor": [
308
+ 0.078,
309
+ 0.078,
310
+ 1,
311
+ 1
312
+ ],
313
+ "inkColor": [
314
+ 0.95,
315
+ 0.95,
316
+ 0.92,
317
+ 1
318
+ ],
319
+ "accentColor": [
320
+ 1,
321
+ 1,
322
+ 1,
323
+ 1
324
+ ],
325
+ "layers": 5
326
+ },
327
+ "strip-acid": {
328
+ "groundColor": [
329
+ 0.784,
330
+ 1,
331
+ 0,
332
+ 1
333
+ ],
334
+ "inkColor": [
335
+ 0.04,
336
+ 0.04,
337
+ 0.04,
338
+ 1
339
+ ],
340
+ "accentColor": [
341
+ 0.04,
342
+ 0.04,
343
+ 0.04,
344
+ 1
345
+ ],
346
+ "displayMode": 1,
347
+ "columns": 300
348
+ },
349
+ "dots-orange": {
350
+ "groundColor": [
351
+ 1,
352
+ 0.235,
353
+ 0,
354
+ 1
355
+ ],
356
+ "inkColor": [
357
+ 0.04,
358
+ 0.04,
359
+ 0.04,
360
+ 1
361
+ ],
362
+ "accentColor": [
363
+ 0.04,
364
+ 0.04,
365
+ 0.04,
366
+ 1
367
+ ],
368
+ "displayMode": 2,
369
+ "columns": 120,
370
+ "layers": 3
371
+ },
372
+ "rainbow-glow": {
373
+ "colorMode": 1,
374
+ "glow": 1.4,
375
+ "lineWidth": 2.6,
376
+ "layers": 7
377
+ }
378
+ },
379
+ "audioBind": {
380
+ "hitBoost": "onset"
381
+ },
382
+ "safeSubstitute": {
383
+ "params": {
384
+ "hitBoost": 0,
385
+ "kickZoom": 0,
386
+ "shake": 0
387
+ }
388
+ },
389
+ "text": [
390
+ {
391
+ "key": "title",
392
+ "default": "WAVEFORM",
393
+ "x": 0.08,
394
+ "y": 0.07,
395
+ "size": 0.07,
396
+ "font": "display",
397
+ "style": "outline",
398
+ "box": "tab"
399
+ },
400
+ {
401
+ "key": "node",
402
+ "default": "STRIP 04",
403
+ "x": 0.92,
404
+ "y": 0.045,
405
+ "size": 0.085,
406
+ "font": "tall",
407
+ "align": "right"
408
+ },
409
+ {
410
+ "key": "n0",
411
+ "default": "0",
412
+ "x": 0.08,
413
+ "y": 0.28,
414
+ "size": 0.018,
415
+ "font": "mono",
416
+ "align": "center"
417
+ },
418
+ {
419
+ "key": "n1",
420
+ "default": "1",
421
+ "x": 0.248,
422
+ "y": 0.28,
423
+ "size": 0.018,
424
+ "font": "mono",
425
+ "align": "center"
426
+ },
427
+ {
428
+ "key": "n2",
429
+ "default": "2",
430
+ "x": 0.416,
431
+ "y": 0.28,
432
+ "size": 0.018,
433
+ "font": "mono",
434
+ "align": "center"
435
+ },
436
+ {
437
+ "key": "n3",
438
+ "default": "3",
439
+ "x": 0.584,
440
+ "y": 0.28,
441
+ "size": 0.018,
442
+ "font": "mono",
443
+ "align": "center"
444
+ },
445
+ {
446
+ "key": "n4",
447
+ "default": "4",
448
+ "x": 0.752,
449
+ "y": 0.28,
450
+ "size": 0.018,
451
+ "font": "mono",
452
+ "align": "center"
453
+ },
454
+ {
455
+ "key": "n5",
456
+ "default": "5",
457
+ "x": 0.92,
458
+ "y": 0.28,
459
+ "size": 0.018,
460
+ "font": "mono",
461
+ "align": "center"
462
+ },
463
+ {
464
+ "key": "log",
465
+ "default": "L/R MONO 48K 16BIT\nTRIG RISING 0X LOCK",
466
+ "x": 0.08,
467
+ "y": 0.8,
468
+ "size": 0.017,
469
+ "font": "mono",
470
+ "reveal": "type",
471
+ "revealStart": 0.3,
472
+ "revealDur": 1.4
473
+ }
474
+ ],
475
+ "credits": [
476
+ "Waveform strip with a numbered ruler: original drawing, no marks, fonts or text from other works",
477
+ "After Effects Audio Waveform parameter vocabulary, https://helpx.adobe.com/after-effects/using/audio-effects.html",
478
+ "Distance estimate |y - f(x)| / sqrt(1 + f'(x)^2) for a graph, https://iquilezles.org/articles/distance/"
479
+ ]
480
+ }
481
+ }
@@ -0,0 +1,219 @@
1
+ // waveform-line main: the waveform strip instrument. A framed strip (panel) with a 0..5 ruler above it
2
+ // (major ticks with numerals from the text layer, minor ticks between), a dashed centre axis, and the
3
+ // smoothed waveform drawn as a hairline: `layers` delayed copies (layerDelay frames apart, from the shift
4
+ // register in wstate), older ones dimmer and thinner. displayMode 0 = polyline, 1 = hair columns (one
5
+ // vertical hairline per column from the axis, like a dense scope strip), 2 = dots. The line is pinched
6
+ // to nothing at both ends and grows from the centre at the start. A hit thickens and fills the strip
7
+ // frame for ~3 frames. Corner brackets, + marks and engine text complete the panel.
8
+ // ---- stage (shared by the spectrum family) ----
9
+ // Camera: bass onsets (bass ratio >= kickBass) zoom the frame by kickZoom and shake it by up to `shake`
10
+ // pixels at 1080p, both decaying over kickDecayMs (both 0 by default: the HUD look is locked down).
11
+ // Background: the flat groundColor; with an input, bgMode 1 = blurred and dimmed footage, 2 = single-tone
12
+ // halftone dots of the footage in the ink colour (dot radius follows luminance). Optional field of
13
+ // drifting flecks (fieldAmount), vignette and film grain. The clock texel is (hit count, last hit frame,
14
+ // kick count, last kick frame), written by the template's state pass.
15
+ float stageSince(float count, float last) { return count > 0.5 ? (float(FRAMEINDEX) - last) * TIMEDELTA : 99.0; }
16
+ float kickEnv(vec4 clk) { return exp(-stageSince(clk.z, clk.w) / max(kickDecayMs * 0.001, 0.001)); }
17
+ float hitEnv(vec4 clk, float seconds) { return exp(-stageSince(clk.x, clk.y) / seconds); }
18
+
19
+ vec2 stageUv(vec4 clk, vec2 uv) {
20
+ float ke = kickEnv(clk);
21
+ vec2 sh = (hash22(vec2(clk.z, 3.7)) - 0.5) * 2.0 * shake * ke * (RENDERSIZE.y / 1080.0) / RENDERSIZE;
22
+ return (uv - 0.5) / (1.0 + kickZoom * ke) + 0.5 + sh;
23
+ }
24
+
25
+ float introK() { return introMs > 0.5 ? smoothstep(introMs * 0.0005, introMs * 0.0012, TIME) : 1.0; }
26
+ float introSpan() { return introMs > 0.5 ? smoothstep(0.0, introMs * 0.0006, TIME) : 1.0; }
27
+
28
+ float stageField(vec2 uv, float lift) {
29
+ float aspect = RENDERSIZE.x / RENDERSIZE.y;
30
+ float acc = 0.0;
31
+ for (int l = 0; l < 2; l++) {
32
+ float fl = float(l);
33
+ float sc = l == 0 ? 11.0 : 34.0;
34
+ vec2 p = vec2(uv.x * aspect, uv.y) * sc - vec2(TIME * fieldSpeed * (0.35 + 0.3 * fl), -TIME * fieldSpeed * (0.05 + 0.04 * fl));
35
+ vec2 c = floor(p);
36
+ vec2 fr = fract(p);
37
+ vec2 h = hash22(c + fl * 17.0);
38
+ float h2 = hash12(c + 31.0 + fl * 5.0);
39
+ float r = (l == 0 ? 0.05 : 0.035) * (0.5 + 0.7 * h2);
40
+ float tw = 0.55 + 0.45 * sin(TIME * (1.0 + 3.0 * h2) + h.x * 6.2832);
41
+ acc += step(length(fr - (0.3 + 0.4 * h)), r) * tw * step(0.45, h2);
42
+ }
43
+ return acc * (0.7 + 0.6 * lift);
44
+ }
45
+
46
+ float stageHalftone(vec2 uv) {
47
+ float u = RENDERSIZE.y / 1080.0;
48
+ float cell = max(halftoneSize * u, 2.0);
49
+ mat2 m = mat2(0.9659, 0.2588, -0.2588, 0.9659);
50
+ vec2 g = m * (uv * RENDERSIZE) / cell;
51
+ vec2 f = fract(g) - 0.5;
52
+ vec2 centre = (transpose(m) * ((floor(g) + 0.5) * cell)) / RENDERSIZE;
53
+ float L = luma(texture(inputImage, centre).rgb);
54
+ float rad = 0.62 * sqrt(clamp(L * 1.25, 0.0, 1.0));
55
+ return clamp((rad - length(f)) * cell + 0.5, 0.0, 1.0);
56
+ }
57
+
58
+ vec3 stageBackground(vec2 uv, vec3 tint, float lift) {
59
+ float aspect = RENDERSIZE.x / RENDERSIZE.y;
60
+ vec3 g = groundColor.rgb;
61
+ if (HAS_INPUT && bgMode == 1) {
62
+ vec3 s = texture(inputImage, uv).rgb;
63
+ float rad = 0.018;
64
+ for (int k = 0; k < 12; k++) {
65
+ float a = float(k) * 0.5236;
66
+ s += texture(inputImage, uv + vec2(cos(a) / aspect, sin(a)) * rad * (k % 2 == 0 ? 1.0 : 0.5)).rgb;
67
+ }
68
+ g = mix(g, s / 13.0, bgDim);
69
+ } else if (HAS_INPUT && bgMode == 2) {
70
+ g = mix(g, inkColor.rgb, stageHalftone(uv) * bgDim);
71
+ }
72
+ return g + tint * stageField(uv, lift) * fieldAmount;
73
+ }
74
+
75
+ vec3 stageFinish(vec3 col, vec2 uv) {
76
+ float aspect = RENDERSIZE.x / RENDERSIZE.y;
77
+ float v = length((uv - 0.5) * vec2(aspect, 1.0)) / (0.5 * sqrt(aspect * aspect + 1.0));
78
+ col *= 1.0 - vignette * smoothstep(0.35, 1.0, v);
79
+ float n = hash12(gl_FragCoord.xy + float(FRAMEINDEX) * 13.37) - 0.5;
80
+ return max(col + n * grain, vec3(0.0));
81
+ }
82
+ // ---- HUD line language (shared by the spectrum family) ----
83
+ // Ground and ink: near-black ground with off-white hairlines by default, or one full colour field with
84
+ // black / white ink (groundColor, inkColor, accentColor). Everything is drawn as 1-2 px hairlines
85
+ // (lineWidth, in pixels at 1080p): framed panels, dashed grids, corner brackets, + crosshairs, tick
86
+ // rulers. Labels come from the engine text layer (TEXTMASK: R = ink, G = box fill).
87
+ float hudU() { return RENDERSIZE.y / 1080.0; }
88
+ float hudW() { return max(lineWidth * hudU(), 1.0); }
89
+ float hair(float d) { return clamp(hudW() * 0.5 - abs(d) + 0.5, 0.0, 1.0); }
90
+ float cov(float d) { return clamp(0.5 - d, 0.0, 1.0); }
91
+ float dashes(float x, float period, float duty) { return step(fract(x / (period * hudU())), duty); }
92
+
93
+ // outline of the rectangle lo..hi (pixels)
94
+ float boxLine(vec2 p, vec2 lo, vec2 hi) {
95
+ vec2 q = abs(p - (lo + hi) * 0.5) - (hi - lo) * 0.5;
96
+ return hair(max(q.x, q.y));
97
+ }
98
+ float inRect(vec2 p, vec2 lo, vec2 hi) { return step(lo.x, p.x) * step(p.x, hi.x) * step(lo.y, p.y) * step(p.y, hi.y); }
99
+
100
+ // + crosshair centred on c with arm length len
101
+ float plusAt(vec2 p, vec2 c, float len) {
102
+ vec2 q = abs(p - c);
103
+ return max(hair(q.y) * step(q.x, len), hair(q.x) * step(q.y, len));
104
+ }
105
+
106
+ // four L-shaped corner brackets of the rectangle lo..hi, arm length len
107
+ float brackets(vec2 p, vec2 lo, vec2 hi, float len) {
108
+ vec2 c = (lo + hi) * 0.5;
109
+ vec2 q = abs(p - c);
110
+ vec2 h = (hi - lo) * 0.5;
111
+ float onV = hair(q.x - h.x) * step(h.y - len, q.y) * step(q.y, h.y + 0.5);
112
+ float onH = hair(q.y - h.y) * step(h.x - len, q.x) * step(q.x, h.x + 0.5);
113
+ return max(onV, onH);
114
+ }
115
+
116
+ vec3 accentAt(float u) { return colorMode == 1 ? paletteCycle(u + paletteShift) : accentColor.rgb; }
117
+
118
+ float textInk() { return HAS_TEXT ? texture(TEXTMASK, vUv).r : 0.0; }
119
+ float textFill() { return HAS_TEXT ? texture(TEXTMASK, vUv).g : 0.0; }
120
+
121
+ // frame chrome common to every instrument: corner + marks and an inset hairline frame
122
+ float hudChrome(vec2 sp) {
123
+ vec2 res = RENDERSIZE;
124
+ float u = hudU();
125
+ float a = 0.0;
126
+ for (int c = 0; c < 4; c++) {
127
+ vec2 centre = vec2((c & 1) == 0 ? 22.0 * u : res.x - 22.0 * u, (c & 2) == 0 ? 22.0 * u : res.y - 22.0 * u);
128
+ a = max(a, plusAt(sp, centre, 7.0 * u));
129
+ }
130
+ return a;
131
+ }
132
+ float lineVal(float x, int d, float lo, float wd, float halfH) {
133
+ float u = (x - lo) / wd;
134
+ if (u < 0.0 || u > 1.0 || abs(u - 0.5) * 2.0 > introSpan()) { return 0.0; }
135
+ float v = texelFetch(wstate, ivec2(clamp(int(x), 0, int(RENDERSIZE.x) - 1), 1 + d), 0).r;
136
+ return v * pow(sin(3.14159265 * u), pinch) * halfH * introK();
137
+ }
138
+
139
+ void main() {
140
+ vec2 res = RENDERSIZE;
141
+ float U = hudU();
142
+ vec4 clk = texelFetch(wstate, ivec2(0, 0), 0);
143
+ vec2 sp = vUv * res;
144
+ vec2 px = stageUv(clk, vUv) * res;
145
+ vec2 lo = vec2(0.08 * res.x, 0.3 * res.y);
146
+ vec2 hi = vec2(0.92 * res.x, 0.66 * res.y);
147
+ float wd = hi.x - lo.x;
148
+ float mid = (lo.y + hi.y) * 0.5;
149
+ float halfH = (hi.y - lo.y) * 0.5 * amplitude / 0.3 * 0.62;
150
+ float t = (px.x - lo.x) / wd;
151
+ float hit = step(0.5, hitEnv(clk, 0.1)) * step(0.5, clk.x) * hitBoost;
152
+ float w = hudW();
153
+ float inPanel = inRect(px, lo, hi);
154
+
155
+ float cvr = 0.0;
156
+ float dist = 1.0e4;
157
+ for (int k = 7; k >= 0; k--) {
158
+ if (k >= layers) { continue; }
159
+ int d = k * layerDelay;
160
+ float alpha = k == 0 ? 1.0 : 0.5 * pow(0.7, float(k - 1));
161
+ if (displayMode == 0) {
162
+ float f0 = lineVal(px.x, d, lo.x, wd, halfH);
163
+ float slope = (lineVal(px.x + 2.0, d, lo.x, wd, halfH) - lineVal(px.x - 2.0, d, lo.x, wd, halfH)) * 0.25;
164
+ for (int s = 0; s < 2; s++) {
165
+ if (s == 1 && !mirror) { break; }
166
+ float sg = s == 0 ? 1.0 : -1.0;
167
+ float dd = abs(px.y - (mid + sg * f0)) / sqrt(1.0 + slope * slope);
168
+ if (k == 0) { dist = min(dist, dd); }
169
+ cvr = max(cvr, clamp(w * (1.0 + hit) * 0.5 - dd + 0.5, 0.0, 1.0) * alpha * inPanel);
170
+ }
171
+ } else if (displayMode == 1) {
172
+ float cell = max(wd / float(columns), 2.0 * U);
173
+ float xc = lo.x + (floor((px.x - lo.x) / cell) + 0.5) * cell;
174
+ float fv = abs(lineVal(xc, d, lo.x, wd, halfH));
175
+ float vline = hair(px.x - xc) * step(abs(px.y - mid), fv + w) * inPanel;
176
+ cvr = max(cvr, vline * alpha);
177
+ if (k == 0) { dist = abs(px.y - mid) - fv; }
178
+ } else {
179
+ float cell = max(wd / float(columns), 3.0 * U);
180
+ float xc = lo.x + (floor((px.x - lo.x) / cell) + 0.5) * cell;
181
+ float f0 = lineVal(xc, d, lo.x, wd, halfH);
182
+ for (int s = 0; s < 2; s++) {
183
+ if (s == 1 && !mirror) { break; }
184
+ float sg = s == 0 ? 1.0 : -1.0;
185
+ float dd = length(vec2(px.x - xc, px.y - (mid + sg * f0)));
186
+ if (k == 0) { dist = min(dist, dd); }
187
+ cvr = max(cvr, cov(dd - 1.7 * U * (1.0 + hit)) * alpha * inPanel);
188
+ }
189
+ }
190
+ }
191
+
192
+ float axis = hair(px.y - mid) * dashes(px.x, 8.0, 0.35) * inPanel * 0.55 * gridAmount;
193
+ float tickT = abs(fract((px.x - lo.x) / (wd / 5.0) + 0.5) - 0.5) * (wd / 5.0);
194
+ float minorT = abs(fract((px.x - lo.x) / (wd / 25.0) + 0.5) - 0.5) * (wd / 25.0);
195
+ float rd = px.y - hi.y;
196
+ float major = step(tickT, w * 0.6) * step(6.0 * U, rd) * step(rd, 22.0 * U);
197
+ float minor = step(minorT, w * 0.6) * step(6.0 * U, rd) * step(rd, 12.0 * U);
198
+ float baseRule = hair(px.y - hi.y - 6.0 * U) * step(lo.x, px.x) * step(px.x, hi.x);
199
+ float ruler = max(max(major, minor * 0.8), baseRule) * gridAmount;
200
+
201
+ float frame = boxLine(sp, lo, hi) * gridAmount;
202
+ float brk = brackets(sp, lo - 12.0 * U, hi + 12.0 * U, 26.0 * U) * gridAmount;
203
+ float plus = 0.0;
204
+ for (int c = 0; c < 4; c++) {
205
+ vec2 centre = vec2((c & 1) == 0 ? 0.03 * res.x : 0.97 * res.x, (c & 2) == 0 ? 0.04 * res.y : 0.96 * res.y);
206
+ plus = max(plus, plusAt(sp, centre, 8.0 * U));
207
+ }
208
+
209
+ vec3 ink = inkColor.rgb;
210
+ vec3 acc = accentAt(t);
211
+ vec3 col = stageBackground(vUv, ink, kickEnv(clk));
212
+ col += acc * exp(-max(dist, 0.0) / max(glowRadius * res.y, 1.0)) * glow * 0.3 * inPanel;
213
+ col = mix(col, ink, max(axis, ruler));
214
+ col = mix(col, ink, cvr);
215
+ col = mix(col, mix(ink, acc, hit), max(frame, brk));
216
+ if (marks) { col = mix(col, ink, plus); }
217
+ col = mix(col, ink, textInk());
218
+ fragColor = vec4(stageFinish(col, vUv), 1.0);
219
+ }