A python and C++ program that uses FASTLED, Spleeter, and Librosa to decompose songs and send instrument timings to LED strips.
ezgif.com-gif-maker.3.mp4
How to run:
- Clone repository and install requirements using cmd pip install -r requirements.txt
- Place audio files into the Audio directory and run AudioDecomposer.py. This part of the process will take a little while.
- Go to config.py and edit the setting dictionaries to match your individual config parameters (instructions in config.py).
- Intall FASTLED Arduino library.
- Go to the Arduino script (found in ArduinoFiles\LedArduinoScript) and change the following:
- Set the mc_id (line 33) to its corresponding id in config.py.
- Set DATA_PIN_1, NUM_LEDS_1, LED_STRIP_TYPE_1, and LED_COLOR_ORDER_1 to your respective microcontroller/strip values. Led_count must be > 4.
- If you have additional data lines (max 4), repeat step B as needed.
- Upload the Arduino script to your board.
- Run AudioPlayer.py. Press q to exit the program at any time.