Generate ambient background noise (white, pink, brown) in your terminal for focus and concentration
- Generate white noise (equal intensity across all frequencies)
- Generate pink noise (1/f frequency distribution, more natural)
- Generate brown noise (1/f² distribution, deeper rumble)
- Adjustable volume control (0-100%)
- Duration parameter (minutes or infinite loop)
- Fade in effect at start (configurable duration)
- Fade out effect at end (configurable duration)
- Real-time waveform visualization in terminal using ASCII
- Graceful shutdown on Ctrl+C with fade out
- Low CPU usage through efficient audio buffer management
- Sample rate configuration (default 44100 Hz)
- Mono audio output to minimize resource usage
Use this project when you need to:
- Quickly solve problems related to noise-gen
- Integrate go functionality into your workflow
- Learn how go handles common patterns
# Clone the repository
git clone https://github.com/KurtWeston/noise-gen.git
cd noise-gen
# Install dependencies
go build./main- go
github.com/spf13/cobragithub.com/hajimehoshi/oto/v2github.com/fatih/color
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.