Files
stemengine_old/2026-04-09_Visualizer_GUI_Parameter_Map.md
T
2026-04-09 08:30:51 +09:00

17 KiB
Raw Blame History

Visualizer GUI Parameter Map

Date: 2026-04-09
Sources:

Scope: Every user-adjustable parameter exposed in the original GUIs for both visualizers. Recorded verbatim from source — ranges, defaults, and step sizes are as defined in the dat.gui calls unless otherwise noted. Effect descriptions are derived from the source code.


Part 1 — Muon Music Visualizer

Default params object (from src/index.js)

let params = {
  maxPoints:            0,        // Note: 0 means "use all computed points"
  colorSpectrum:        3,
  aperture:             3,
  sineCounterMultiplier: 1,
  idleMultiplier:       0.27,
  particleMirror:       true,
  radiusMultiplier:     0.66,
  dynamicRadius:        true,
  updateLockInterval:   0.17,
  deltaResponseLimit:   0.005,
  visualizationPreset:  true,
  spacing:              1,
  syncColors:           true,
  divisions:            21,
  lifespan:             200,
  noiseScale:           0.3,
  noiseForce:           1,
  timeMult:             0.01,
  enableMonoColor:      false,
  monoColor:            { h: 350, s: 0.9, v: 0.3 },
}

Post-processing defaults (from src/CoreControls/postProcessing.js)

// UnrealBloomPass
bloomStrength:   0.55
bloomThreshold:  0.35
bloomRadius:     0.6

// AfterimagePass
damp:            0.86

visualizationPresets array (from src/CoreControls/params.js)

16 values cycling via wavePresetController on beats:

[0.6604, 0.6606, 0.6608, 0.6609, 0.661, 0.6612, 0.6614, 0.7536,
 0.6615, 0.6613, 0.6611, 0.661, 0.66081, 0.6607, 0.6605, 0.6603]

These are radiusMultiplier target values. Range: 0.6603–0.7536.


GUI parameter table (from src/GUI/index.js)

Root GUI (no folder)

Label Key Control Min Max Step Default Effect
radiusMultiplier radiusMultiplier Slider 0.01 1 0.0001 0.66 Scales the spiral radius range that wavePresetController cycles through. Lower = tighter spiral.
side view sideView Button — — — — Triggers GSAP camera animation to a side perspective.
reset reset Button — — — — Resets all params to defaults and restores camera.

Particle Controls folder

Label Key Control Min Max Step Default Effect
spacing spacing Slider 0 1 0.01 1 Inter-ring gap in the spiral. Higher = rings farther apart.
maxPoints maxPoints Slider 0 12240 360 0 Number of rendered particles. 0 = full computed count.
colorSpectrum colorSpectrum Slider 3 30 3 3 Number of colour bands in the spiral geometry (integer multiples of 3). Not a hue angle. Higher = more colour segments visible.
aperture aperture Slider 0 π (~3.14) 0.01 3 Controls the opening angle of the spiral. Near 0 = very tight helix; near π = fully open ellipse.
particleMirror particleMirror Toggle — — — true When on, duplicates the particle system on both sides of the spiral axis.

Controls folder

Label Key Control Min Max Step Default Effect
dynamicRadius dynamicRadius Toggle — — — true Enables audio-reactive radius changes. When off, radiusMultiplier stays fixed at its current value and wavePresetController does not cycle.
visualizationPreset visualizationPreset Toggle — — — true Enables GSAP-animated preset cycling via wavePresetController on beat detection. When off, radius stays fixed.
idleMultiplier idleMultiplier Slider 0 2 0.01 0.27 When audio is not playing, multiplies elapsed time to advance sineCounter at reduced speed for gentle background animation. Higher = faster idle motion.

Audio Controls folder

Label Key Control Min Max Step Default Effect
deltaResponseLimit deltaResponseLimit Slider 0.001 0.01 0.001 0.005 Minimum beat-delta required to trigger a preset advance in wavePresetController. Lower = more sensitive (advances faster on softer beats).

Emission Controls folder

Label Key Control Min Max Step Default Effect
enableMonoColor enableMonoColor Toggle — — — false When on, replaces audio-driven HSL cycling with a single fixed colour (monoColor).
divisions divisions Slider 1 150 1 21 Number of frequency bins used to drive wave geometry segmentation. Higher = more frequency detail in the wave shape, more geometry vertices.
lifespan lifespan Slider 10 250 1 200 Particle lifetime in milliseconds before removal and reuse. Lower = faster particle turnover / more chaotic look.
monoColor monoColor Color (HSV) — — — h:350 s:0.9 v:0.3 Fixed colour used when enableMonoColor is on. Expressed as HSV; h=350 is deep red/magenta.

Noise Controls folder

Label Key Control Min Max Step Default Effect
noiseScale noiseScale Slider 0 1 0.0001 0.3 Magnitude of noise texture applied to particle positions. 0 = perfectly regular spiral; 1 = maximum noise displacement.
noiseForce noiseForce Slider 0 1 0.0001 1 Multiplier on noise-driven particle velocity/force. Lower = noise displaces particles more slowly.

Post-processing (not in GUI by default — hardcoded in postProcessing.js)

Parameter Default Effect
bloomStrength 0.55 Bloom glow intensity (Three.js UnrealBloomPass).
bloomThreshold 0.35 Brightness threshold above which bloom is applied.
bloomRadius 0.6 Spread radius of the bloom effect.
damp (afterimage) 0.86 Afterimage persistence. 1.0 = permanent trail; 0.0 = no trail.

Note: sineCounterMultiplier, updateLockInterval, syncColors, timeMult are in the params object and affect rendering but are not exposed in the GUI. They cannot be changed at runtime on muon-vis.netlify.app.


Part 2 — WebGL Fluid Simulation

Default config object (from script.js)

let config = {
  SIM_RESOLUTION:      128,
  DYE_RESOLUTION:      1024,
  CAPTURE_RESOLUTION:  512,
  DENSITY_DISSIPATION: 1,
  VELOCITY_DISSIPATION: 0.2,
  PRESSURE:            0.8,
  PRESSURE_ITERATIONS: 20,
  CURL:                30,
  SPLAT_RADIUS:        0.25,
  SPLAT_FORCE:         6000,
  SHADING:             true,
  COLORFUL:            true,
  COLOR_UPDATE_SPEED:  10,
  PAUSED:              false,
  BACK_COLOR:          { r: 0, g: 0, b: 0 },
  TRANSPARENT:         false,
  BLOOM:               true,
  BLOOM_ITERATIONS:    8,
  BLOOM_RESOLUTION:    256,
  BLOOM_INTENSITY:     0.8,
  BLOOM_THRESHOLD:     0.6,
  BLOOM_SOFT_KNEE:     0.7,
  SUNRAYS:             true,
  SUNRAYS_RESOLUTION:  196,
  SUNRAYS_WEIGHT:      1.0,
}

GUI parameter table (from script.js lines 313–400)

Main panel (no folder)

Label Key Control Min Max Step Default Effect
Quality DYE_RESOLUTION Dropdown — — — 1024 Ink/dye texture resolution. Options: High (1024), Medium (512), Low (256), Very Low (128). Lower = better performance, softer ink.
Sim resolution SIM_RESOLUTION Dropdown — — — 128 Velocity field simulation grid size. Options: 32 / 64 / 128 / 256. Lower = faster but chunkier fluid motion.
Density diffusion DENSITY_DISSIPATION Slider 0 4.0 — 1 How quickly ink fades each frame. In the advection shader: density *= uDissipation. Higher = faster fade = shorter trails. 0 = ink persists forever; 4 = near-instant disappearance.
Velocity diffusion VELOCITY_DISSIPATION Slider 0 4.0 — 0.2 How quickly fluid velocity dissipates. Higher = more viscous / fluid stops faster.
Pressure PRESSURE Slider 0.0 1.0 — 0.8 Pressure solve strength. Higher values maintain more fluid pressure, producing tighter, more defined flow patterns.
Vorticity CURL Slider 0 50 1 30 Curl/vorticity confinement. Higher = more swirling/turbulent flow. 0 = no swirl.
Splat radius SPLAT_RADIUS Slider 0.01 1.0 — 0.25 Size of each ink injection point. Larger = wider splat footprint.
Shading SHADING Toggle — — — true Enables normal-map-based shading on the fluid surface, giving it a 3D appearance.
Colorful COLORFUL Toggle — — — true When on, continuously cycles ink colour via COLOR_UPDATE_SPEED. When off, new splats keep their initial colour indefinitely.
Paused PAUSED Toggle — — — false Freezes the simulation (stops advection). Splats can still be added while paused.
Random splats (button) Button — — — — Adds a random burst of coloured splats across the canvas.

Bloom folder

Label Key Control Min Max Step Default Effect
Enabled BLOOM Toggle — — — true Enables the bloom post-processing pass.
Intensity BLOOM_INTENSITY Slider 0.1 2.0 — 0.8 Bloom glow strength. Higher = brighter glow around bright ink regions.
Threshold BLOOM_THRESHOLD Slider 0.0 1.0 — 0.6 Brightness level above which bloom applies. Lower threshold = more of the ink blooms.

BLOOM_SOFT_KNEE (0.7) and BLOOM_RESOLUTION (256) and BLOOM_ITERATIONS (8) are in the config object but not exposed in the GUI. They affect bloom quality and softness.

Sunrays folder

Label Key Control Min Max Step Default Effect
Enabled SUNRAYS Toggle — — — true Enables the god-rays / sunrays post-processing pass through the fluid.
Weight SUNRAYS_WEIGHT Slider 0.3 1.0 — 1.0 Intensity of the sunrays effect.

SUNRAYS_RESOLUTION (196) is in config but not in the GUI.

Capture folder

Label Key Control Min Max Step Default Effect
Background colour BACK_COLOR Color picker — — — #000000 Background colour shown when TRANSPARENT is off.
Transparent TRANSPARENT Toggle — — — false Renders fluid over a transparent background (useful for capture/export).
Take screenshot (button) Button — — — — Downloads a PNG snapshot of the current frame.

Part 3 — Cross-reference: what is and isn't in StemEngine's VizSettings

Muon — current StemEngine coverage vs. full GUI

GUI parameter In VizSettings? Notes
radiusMultiplier ✅ muon.radius_multiplier As a multiplier on preset cycle range
aperture ✅ muon.aperture As a multiplier on audio-computed value
spacing ✅ muon.spacing As a multiplier
maxPoints / particle_count 🔲 Proposed (Controls Audit) Direct int, not a multiplier
deltaResponseLimit / beat_sensitivity 🔲 Proposed (Controls Audit) As divisor of 200 ms cooldown
idleMultiplier ❌ Not mapped Could map directly; controls idle animation speed
noiseScale ❌ Not mapped Controls spatial regularity of the spiral
noiseForce ❌ Not mapped Controls velocity of noise-displaced particles
divisions ❌ Not mapped Frequency bin resolution — affects reactivity detail
lifespan ❌ Not mapped Particle turnover rate
colorSpectrum ❌ Not mapped Colour band count (int ×3, range 3–30)
enableMonoColor ❌ Not mapped Boolean — locks colour to monoColor
monoColor ❌ Not mapped Fixed HSV colour when mono mode is on
particleMirror ❌ Not mapped Boolean — mirrors geometry
dynamicRadius ❌ Not mapped Boolean — enables audio-reactive radius cycling
visualizationPreset ❌ Not mapped Boolean — enables preset cycling
bloomStrength ❌ Not mapped Post-processing — not in GUI, hardcoded
bloomThreshold ❌ Not mapped Post-processing — not in GUI, hardcoded
bloomRadius ❌ Not mapped Post-processing — not in GUI, hardcoded
damp (afterimage) ❌ Not mapped Post-processing — not in GUI, hardcoded
glow_intensity 🔲 Proposed (Controls Audit) Canvas port equivalent of bloom/glow
particle_size 🔲 Proposed (Controls Audit) Canvas port parameter
drum_reactivity 🔲 Proposed (Controls Audit) Canvas port parameter
hue_range 🔲 Proposed (Controls Audit) Canvas port parameter
ellipse_ratio 🔲 Proposed (Controls Audit) Canvas port; maps to aperture at geometry level
rotation_speed 🔲 Proposed (Controls Audit) Canvas port parameter

Fluid — current StemEngine coverage vs. full GUI

GUI parameter In VizSettings? Notes
spawn_density ✅ fluid.spawn_density Multiplier on ambient spawn probability
splat_force ✅ fluid.splat_force Multiplier on blob velocity/size
decay ✅ fluid.decay Multiplier on per-frame lifetime drain
DENSITY_DISSIPATION ❌ Not mapped Canvas sim uses decay instead; relevant for WebGL port
VELOCITY_DISSIPATION ❌ Not mapped Canvas sim uses drag; relevant for WebGL port
PRESSURE ❌ Not mapped WebGL-only; no canvas equivalent
CURL ❌ Not mapped Vorticity; WebGL-only
SPLAT_RADIUS ❌ Not mapped Canvas sim uses blob radius (implicit in force)
SPLAT_FORCE ❌ Not mapped Equivalent to splat_force — already covered
SHADING ❌ Not mapped WebGL-only post-processing
COLORFUL ❌ Not mapped Colour cycling — always on in canvas sim
COLOR_UPDATE_SPEED ❌ Not mapped Canvas sim cycles through speakerPalette sequentially
BLOOM ❌ Not mapped WebGL-only
BLOOM_INTENSITY ❌ Not mapped WebGL-only
BLOOM_THRESHOLD ❌ Not mapped WebGL-only
SUNRAYS ❌ Not mapped WebGL-only
SUNRAYS_WEIGHT ❌ Not mapped WebGL-only
BACK_COLOR ❌ Not mapped Canvas sim uses palette backgroundColor
background_persistence 🔲 Proposed (Controls Audit) Canvas-specific: fill-alpha trail control
beat_burst_count 🔲 Proposed (Controls Audit) Canvas-specific
treble_pulse 🔲 Proposed (Controls Audit) Canvas-specific
drag 🔲 Proposed (Controls Audit) Canvas equivalent of VELOCITY_DISSIPATION
blob_life 🔲 Proposed (Controls Audit) Canvas-specific

Part 4 — Parameters worth adding to VizSettings (from original GUI, not yet proposed)

These are original GUI parameters that were not covered in 2026-04-08_Visualizer_Controls_Audit.md and are relevant to StemEngine's canvas-based port.

Muon additions

Original key Suggested VizSettings key Type Range Default Notes
idleMultiplier muon.idle_speed float 0.0–2.0 1.0 Multiplier on the current 0.27 default. Controls how fast the spiral animates when no audio is playing.
noiseScale muon.noise_scale float 0.0–3.0 1.0 Multiplier on the current 0.3 default. Higher = more spatial irregularity in the spiral.
noiseForce muon.noise_force float 0.0–3.0 1.0 Multiplier on noiseForce. Higher = noisier particle velocity.
colorSpectrum muon.color_segments int 3–30 3 Direct value (steps of 3). Number of colour bands in spiral. More = richer colour banding.
enableMonoColor muon.mono_color boolean — false Locks colour to a fixed value rather than audio-driven hue cycling.
lifespan muon.particle_lifespan float 0.25–3.0 1.0 Multiplier on 200 ms default. Lower = faster particle turnover.
particleMirror muon.mirror boolean — true Mirrors the particle system across the spiral axis.

Fluid additions

Original key Suggested VizSettings key Type Notes
CURL fluid.curl float (0.25–3.0 ×) Multiplier on 30 default. Higher = more swirling vortex motion in WebGL port. Not applicable to current canvas sim.
COLORFUL / COLOR_UPDATE_SPEED fluid.color_speed float (0.0–3.0 ×) Multiplier on palette cycling speed. 0 = colour locked after first spawn; 3 = rapid cycling.

Most other Fluid GUI parameters (BLOOM_*, SUNRAYS_*, PRESSURE, SHADING) are WebGL-only and do not apply to the current canvas blob renderer in StemEngine. They become relevant only if the full PavelDoGreat/WebGL-Fluid-Simulation JS source is vendored.