diff --git a/public/js/geometry/instruments.js b/public/js/geometry/instruments.js index d7f736c..5fceb5c 100644 --- a/public/js/geometry/instruments.js +++ b/public/js/geometry/instruments.js @@ -17,8 +17,7 @@ export const SPECIAL_INSTRUMENTS = [ 'plasma_sphere' ]; - // --- Helper: Dual Vintage Analog VU Meters --- - function drawAnalogVuMeters(targetCtx, width, height, leftLevel, rightLevel, currentTime, cfg) { + // --- Helper: Dual Vintage Analog VU Meters --- function drawAnalogVuMeters(targetCtx, width, height, leftLevel, rightLevel, currentTime, cfg) { targetCtx.save(); const meterW = Math.min(370, width * 0.24); const meterH = meterW * 0.62; @@ -191,8 +190,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 1: Stereo Goniometer / Lissajous Scope --- - function drawGoniometerScope(targetCtx, width, height, timePayload, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 1: Stereo Goniometer / Lissajous Scope --- function drawGoniometerScope(targetCtx, width, height, timePayload, currentTime, cfg) { targetCtx.save(); const radius = Math.min(width, height) * 0.28 * (state.currentPulse || 1.0); const color1 = cfg.colorGrad1 || '#00ff88'; @@ -310,8 +308,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 2: Dual LED-Segment Peak Meter Towers --- - function drawLedPeakMeters(targetCtx, width, height, leftEnergy, rightEnergy, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 2: Dual LED-Segment Peak Meter Towers --- function drawLedPeakMeters(targetCtx, width, height, leftEnergy, rightEnergy, currentTime, cfg) { targetCtx.save(); const towerW = Math.min(75, width * 0.055); const towerH = Math.min(360, height * 0.38); @@ -430,8 +427,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 3: Vintage EM84 Magic Eye Tube --- - function drawMagicEyeTube(targetCtx, width, height, peakEnergy, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 3: Vintage EM84 Magic Eye Tube --- function drawMagicEyeTube(targetCtx, width, height, peakEnergy, currentTime, cfg) { targetCtx.save(); const tubeW = Math.min(440, width * 0.32); const tubeH = tubeW * 0.35; @@ -527,8 +523,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 4: Reel-to-Reel Master Tape Deck --- - function drawReelToReelDeck(targetCtx, width, height, progress, isPlaying, rawBassEnergy, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 4: Reel-to-Reel Master Tape Deck --- function drawReelToReelDeck(targetCtx, width, height, progress, isPlaying, rawBassEnergy, currentTime, cfg) { targetCtx.save(); const deckW = Math.min(560, width * 0.42); const deckH = deckW * 0.66; @@ -667,8 +662,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 5: Transparent Retro Cassette Deck --- - function drawCassetteDeck(targetCtx, width, height, progress, isPlaying, leftEnergy, rightEnergy, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 5: Transparent Retro Cassette Deck --- function drawCassetteDeck(targetCtx, width, height, progress, isPlaying, leftEnergy, rightEnergy, currentTime, cfg) { targetCtx.save(); const tapeW = Math.min(500, width * 0.38); const tapeH = tapeW * 0.62; @@ -813,8 +807,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 6: DJ Vinyl Turntable with Strobe & Tonearm --- - function drawVinylTurntable(targetCtx, width, height, progress, isPlaying, rawBassEnergy, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 6: DJ Vinyl Turntable with Strobe & Tonearm --- function drawVinylTurntable(targetCtx, width, height, progress, isPlaying, rawBassEnergy, currentTime, cfg) { targetCtx.save(); const size = Math.min(width, height) * 0.42 * (state.currentPulse || 1.0); const platterR = size * 0.95; @@ -959,8 +952,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 7: CRT Waterfall Spectrogram --- - function drawWaterfallSpectrogram(targetCtx, width, height, fMono, isPlaying, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 7: CRT Waterfall Spectrogram --- function drawWaterfallSpectrogram(targetCtx, width, height, fMono, isPlaying, currentTime, cfg) { targetCtx.save(); const frameW = Math.min(480, width * 0.36); const frameH = frameW * 0.68; @@ -1078,8 +1070,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 8: Sci-Fi Hologram Sonar / Radar Sweep --- - function drawRadarSweep(targetCtx, width, height, fMono, rawBassEnergy, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 8: Sci-Fi Hologram Sonar / Radar Sweep --- function drawRadarSweep(targetCtx, width, height, fMono, rawBassEnergy, currentTime, cfg) { targetCtx.save(); const radius = Math.min(width, height) * 0.28 * (state.currentPulse || 1.0); const color = cfg.colorGrad1 || '#00ffaa'; @@ -1181,8 +1172,7 @@ export const SPECIAL_INSTRUMENTS = [ targetCtx.restore(); } - // --- SPECIAL INSTRUMENT 9: Tesla Plasma-Kugel (Electric Arc Sphere) --- - function drawPlasmaSphere(targetCtx, width, height, rawBassEnergy, trebleEnergy, currentTime, cfg) { + // --- SPECIAL INSTRUMENT 9: Tesla Plasma-Kugel (Electric Arc Sphere) --- function drawPlasmaSphere(targetCtx, width, height, rawBassEnergy, trebleEnergy, currentTime, cfg) { targetCtx.save(); const radius = Math.min(width, height) * 0.28 * (state.currentPulse || 1.0); const electrodeR = radius * (0.20 + (state._kickPunch || 0) * 0.08);