LoFi Composer 🎵

Chrome Extension for playing procedurally generated lo-fi music in the background
Features
- Fully Algorithmic - No samples, pure Web Audio API synthesis
- Procedural Generation - Jazz chord progressions, drums, bass, melody
- Mood Presets - Chill (68 BPM), Flow (75 BPM), Night (62 BPM)
- Rain Ambience - Procedurally generated rain sounds
- Auto-Regenerate - Fresh compositions every 5/10/15/30 minutes
- Pomodoro Timer - Work/break cycles with automatic mood switching
- Session Timer - Track your focus time
- Badge Indicator - Visual playback status on extension icon
- Fade In/Out - Smooth audio transitions
- Lo-Fi Effects - Vinyl crackle, reverb, filtering
- Retro 90s UI - Authentic teal/yellow Memphis design aesthetic
- Offline Ready - Works without internet connection
Installation
- Open Chrome and go to
chrome://extensions/
- Enable “Developer mode” (top right)
- Click “Load unpacked”
- Select the
LoFiComposer folder
Usage
Click the extension icon in your toolbar to open the popup:
- Mood Buttons - Choose CHILL 😌, FLOW 🔥, or NIGHT 🌙
- ▶ PLAY - Start the music
- ⏸ PAUSE - Pause playback
- ↻ NEW VIBE - Generate a fresh composition
- VOLUME - Adjust master volume
- RAIN AMBIENCE - Mix in procedural rain sounds
- AUTO-REGEN - Set automatic composition refresh interval
- 🍅 POMODORO MODE - Enable work/break cycles (25/5 min default)
- Automatically switches to FLOW mood during work
- Switches to CHILL mood during breaks
- Session Timer - Displays elapsed time or Pomodoro countdown
Tech Stack
- Tone.js (Web Audio framework)
- Vanilla JavaScript
- CSS3 animations
- Chrome Extension Manifest V3
How It Works
The extension generates music using:
- 6 jazz chord progressions with extended chords (9th, 11th)
- 3 mood presets affecting BPM, velocity, and instrument mix
- Procedural bass lines following chord roots
- Lo-fi drum patterns (kick, snare, hi-hat) with humanization
- Sparse melody generation based on mood
- Pink noise for vinyl ambience
- Procedural rain sound with reverb
- Fade in/out transitions
- Master gain control with low-pass filtering
Support
For questions, feedback, or bug reports, please contact:
License
MIT License - see LICENSE file for details