|
| 1 | +# Minimalistic Audio Visualizer Wallpaper |
| 2 | + |
| 3 | +A dynamic Lively Wallpaper that responds to music playback with audio visualization and album cover color extraction. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +### 🎵 Audio Visualizer |
| 8 | + |
| 9 | +- Real-time audio visualization with 128 frequency bars |
| 10 | +- Multiple color modes: |
| 11 | + - **Album Cover Colors**: Horizontal gradient using colors extracted from the current album cover |
| 12 | + - **White Illusion**: Random light colors for a subtle effect |
| 13 | + - **Spectrum**: Rainbow gradient across the visualizer |
| 14 | + - **Based on Value**: Dynamic colors based on audio intensity (blue → cyan → green → yellow → red) |
| 15 | + - **Custom Color**: Choose your own color |
| 16 | +- Adjustable height scaling |
| 17 | +- Adjustable opacity |
| 18 | +- Toggle on/off |
| 19 | + |
| 20 | +### 🎨 Background Colors |
| 21 | + |
| 22 | +- Automatic color extraction from album artwork (using color.js) |
| 23 | +- Smooth transitions when album cover changes (1.5s fade) |
| 24 | +- Radial gradient with subtle blur effects |
| 25 | +- Adjustable saturation (desaturation slider) |
| 26 | +- Adjustable opacity |
| 27 | +- Toggle on/off |
| 28 | + |
| 29 | +### 🎤 Now Playing Display |
| 30 | + |
| 31 | +- Shows current track information (Title, Artist, Album) |
| 32 | +- Auto-hides when no music is playing |
| 33 | +- Adjustable opacity |
| 34 | +- Adjustable size scaling |
| 35 | +- Toggle on/off |
| 36 | + |
| 37 | +### 🔧 Advanced Features |
| 38 | + |
| 39 | +- **Adaptive Audio Scaling**: Visualizer intensity is calculated relative to the average maximum loudness over the last 60 seconds, ensuring consistent visualization regardless of track volume |
| 40 | +- **Smooth Color Transitions**: Album cover color changes fade smoothly over 1.5 seconds |
| 41 | +- **Debug Mode**: View real-time statistics including: |
| 42 | + - Average loudness |
| 43 | + - Current max loudness (60s rolling average) |
| 44 | + - Number of extracted colors |
| 45 | + - Background saturation level |
| 46 | + - Playback type |
| 47 | + - Color swatches with RGB values (top-left corner) |
| 48 | + |
| 49 | +## Technical Details |
| 50 | + |
| 51 | +### Color Extraction |
| 52 | + |
| 53 | +Uses [color.js](https://github.com/luukdv/color.js/) to extract the 5 most prominent colors from album artwork. Colors are sampled and grouped for optimal visual results. - IMPORTANT: color.js is licensed under the MIT License by Luuk de Vlieger. |
| 54 | + |
| 55 | +### Audio Processing |
| 56 | + |
| 57 | +- Receives 128-band frequency data (0-255 values) |
| 58 | +- Tracks rolling maximum loudness over 60 seconds |
| 59 | +- Calculates relative intensity for adaptive visualization |
| 60 | + |
| 61 | +### Color Desaturation |
| 62 | + |
| 63 | +Custom RGB desaturation algorithm that interpolates between original colors and their grayscale equivalents based on the saturation slider (0 = grayscale, 1 = full saturation). |
| 64 | + |
| 65 | +### Performance |
| 66 | + |
| 67 | +- Uses HTML5 Canvas for rendering |
| 68 | +- Efficient gradient caching for album cover color mode |
| 69 | +- RequestAnimationFrame for smooth color transitions |
| 70 | +- Responsive to window resize events |
| 71 | + |
| 72 | +## Customization Options |
| 73 | + |
| 74 | +All settings are available through Lively Wallpaper's customization panel: |
| 75 | + |
| 76 | +| Setting | Type | Default | Range | Description | |
| 77 | +| ----------------------------- | -------- | ----------- | ------- | ------------------------------------- | |
| 78 | +| Show Audio Visualizer | Toggle | On | - | Enable/disable visualizer | |
| 79 | +| Audio Visualizer Opacity | Slider | 0.5 | 0-1 | Transparency of visualizer bars | |
| 80 | +| Audio Visualizer Height Scale | Slider | 1.0 | 0.1-3.0 | Scale factor for bar heights | |
| 81 | +| Audio Visualizer Color Mode | Dropdown | Album Cover | - | Color scheme selection | |
| 82 | +| Audio Visualizer Custom Color | Color | #FFFFFF | - | Custom color (when mode = Custom) | |
| 83 | +| Show Now Playing | Toggle | On | - | Enable/disable track info | |
| 84 | +| Now Playing Opacity | Slider | 0.8 | 0-1 | Transparency of track info | |
| 85 | +| Now Playing Size | Slider | 1.0 | 0.5-3.0 | Scale factor for track info | |
| 86 | +| Show Background Colors | Toggle | On | - | Enable/disable album color background | |
| 87 | +| Background Colors Opacity | Slider | 0.25 | 0-1 | Transparency of background | |
| 88 | +| Background Colors Saturation | Slider | 0.5 | 0-1 | Color saturation (0=gray, 1=full) | |
| 89 | +| Enable Debug Mode | Toggle | Off | - | Show debug information | |
| 90 | + |
| 91 | +## Files Structure |
| 92 | + |
| 93 | +``` |
| 94 | +minimalistic/ |
| 95 | +├── index.html # Main HTML structure |
| 96 | +├── style.css # Styling and layout |
| 97 | +├── wallpaper.js # Main application logic |
| 98 | +├── color.js # Color extraction library |
| 99 | +├── LivelyInfo.json # Lively Wallpaper metadata |
| 100 | +├── LivelyProperties.json # Customization settings |
| 101 | +└── README.md # This file |
| 102 | +``` |
| 103 | + |
| 104 | +## Browser Compatibility |
| 105 | + |
| 106 | +- Requires HTML5 Canvas support |
| 107 | +- Uses ES6+ JavaScript features |
| 108 | +- Tested with Chromium-based browsers (Edge, Chrome) |
| 109 | + |
| 110 | +## Credits |
| 111 | + |
| 112 | +- **Color Extraction**: [color.js](https://github.com/luukdv/color.js/) by Luuk de Vlieger |
| 113 | +- **Platform**: [Lively Wallpaper](https://rocksdanister.com/lively/) by Dani John |
| 114 | + |
| 115 | +## License |
| 116 | + |
| 117 | +This wallpaper is free to use and modify for personal use. |
0 commit comments