https://github.com/ivkos/luxaudio
Captures audio and creates spectrum visualizations on RGB LED strips
https://github.com/ivkos/luxaudio
Last synced: 12 months ago
JSON representation
Captures audio and creates spectrum visualizations on RGB LED strips
- Host: GitHub
- URL: https://github.com/ivkos/luxaudio
- Owner: ivkos
- License: apache-2.0
- Created: 2020-01-11T15:23:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-31T14:45:44.000Z (almost 6 years ago)
- Last Synced: 2024-04-14T05:14:21.987Z (over 2 years ago)
- Language: Go
- Homepage:
- Size: 55.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# luxaudio
❤️💚💙
**luxaudio** is a Go application that captures audio, does spectral analysis
on it, and sends a spectrum visualization to a **[luxsrv](https://github.com/ivkos/luxsrv)**-enabled RGB LED strip
over the network.
**luxaudio** is part of **[Lux](https://github.com/ivkos/lux)**.
## Requirements
* Go
## Quick Start
### Build
`go build ./cmd/luxaudio`
### Start
```
./luxaudio \
--channels 1 \
--device capture \
--host 10.10.10.108 \
--leds 120 \
--sampleRate 44100 \
--fft 1024 \
--decay 0.5 \
--dbfsThreshold -64 \
--audibleLow 30 \
--audibleHigh 17000 \
--color 9dfc03 \
--mirror true
```
### Usage
```
Usage of ./luxaudio:
-audibleHigh float
upper audible frequency (default 20000)
-audibleLow float
lower audible frequency (default 20)
-backend string
audio backend (auto, wasapi, alsa, pulse, jack) (default "auto")
-channels int
number of channels (default 2)
-color string
hex color (default "ff00ff")
-dbfsThreshold float
dBFS threshold (default -96.32959861247399)
-decay float
decay factor [0,1] controls the smoothness of the visualization (default 0.5)
-device string
device to use (loopback, capture) (default "loopback")
-effect string
color effect (solid, rainbow, luxception) (default "solid")
-fft int
FFT size (default 1024)
-host string
host of the luxsrv
-leds int
number of LEDs to be driven (max 255)
-mirror
mirror mode with lower frequencies at the middle
-port uint
port of the luxsrv (default 42170)
-sampleRate int
sample rate
-verbose
print verbose messages
```