This is a simple web-based music player that features a 3-band equalizer (Low, Mid, High) and a real-time color visualizer that changes the screen color based on the music's frequency energy.
- Upload and play local audio files
- Adjustable EQ bands:
- Low (Red channel)
- Mid (Green channel)
- High (Blue channel)
- Color changes dynamically based on real-time frequency analysis
- Adaptive scaling based on the last 4 seconds of playback
- Unified color normalization for consistent visual effects
-
Go to:
π https://carlosforster.github.io/ColorLightsMusicPlayer -
Upload an audio file from your device.
-
Use the sliders to adjust the EQ bands and watch the background color change based on audio dynamics.
- Uses the Web Audio API to create a 3-band EQ with
BiquadFilterNodes. - An
AnalyserNodereads frequency data in real time. - The RGB background color corresponds to the energy in each band:
- Red: Low (20β320 Hz)
- Green: Mid (320β2000 Hz)
- Blue: High (2000β8000 Hz)
- Color intensities are normalized using a rolling buffer of the last 4 seconds for smooth transitions.
The app works in mobile browsers like Chrome or Safari. For best performance:
- Use
.mp3,.wav, or.oggfiles. - Add the site to your home screen to use it like an app (PWA support can be added later).
π ColorLightsMusicPlayer/ ββ index.html ββ README.md