Binaural-ish Spectrum Shifter + Flash (Web Audio)
Safety note (important):
Flashing visuals can trigger seizures in people with photosensitive epilepsy. Keep frequency low and use the STOP button.
1) Control table (time, shift Hz)
CSV lines:
timeSeconds, shiftHz
0,0 5,0 10,20 20,6 30,6
Linear interpolation between points. Shift is used for:
Audio:
L =
+shift/2
, R =
-shift/2
(approx frequency shifting).
Visual:
full cycle through color list at
|shift|
Hz (or fixed Hz).
End mode
Hold at last entry
Cycle through table forever (loop)
Cycle through table then back forever (ping-pong)
Cycle through table and end (stop)
Max |shift| clamp (Hz)
Keep it modest to reduce artifacts.
2) Audio source
Source type
Sine oscillator
Local file upload
URL (static file)
URL sources may fail due to CORS (ignored for now).
Oscillator frequency (Hz)
Choose audio file
Audio URL
Volume
Wet mix (shifted amount)
Shift smoothing (ms)
Adds a tiny glide to reduce zipper noise.
Visual max frame dt (ms)
Caps dt jumps if tab hiccups (prevents big skips).
3) Flash colors + timing
Comma-separated hex colors (
#RRGGBB
)
Visual enabled
Yes
No (audio only)
Cycle Hz source
Use |shift| Hz
Fixed Hz
Fixed cycle Hz
Max cycle clamp (Hz)
Run
Start
Load gentle example
Running
t=
0.00
s | shift=
0.00
Hz | cycle=
0.00
Hz
Pause
Resume
Stop
Edit