// 3D Highway visualization plugin — Three.js note highway. // Visual layer from joel's prototype (vibrant palette, glowing strings, // fret heat, dynamic lane, chord frame-boxes, per-note connector labels, // board projection, outline+core note meshes) adapted into the // feedBackViz setRenderer contract (feedBack#36) so it works in the // main player and per-panel in splitscreen without any architectural // changes. (function () { 'use strict'; /* ====================================================================== * Constants * ====================================================================== */ // Three.js is vendored under static/vendor/three/ in core (pinned r170 — // see static/vendor/three/VERSION). The bundled plugin loads from the // same origin to avoid the first-launch CDN round-trip and to pin the // version against breakages from upstream Three.js drift. const THREE_URL = '/static/vendor/three/three.module.min.js'; const THREE_CDN = 'https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.min.js'; /* ── Butterchurn audio-reactive background ────────────────────────── * Mounts a Butterchurn (WebGL MilkDrop) canvas BEHIND the transparent * 3D highway. On desktop it's driven by the guitar/mic input (the song * audio lives in JUCE, not the webview