Skip to content

Python and c++ script that uses FASTLED, Spleeter, and Librosa to decompose music to four instruments and send beat timings to LED strips.

Notifications You must be signed in to change notification settings

marianonj/LedMusicDecomposer

Repository files navigation

LedMusicDecomposer

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:

  1. Clone repository and install requirements using cmd pip install -r requirements.txt
  2. Place audio files into the Audio directory and run AudioDecomposer.py. This part of the process will take a little while.
  3. Go to config.py and edit the setting dictionaries to match your individual config parameters (instructions in config.py).
  4. Intall FASTLED Arduino library.
  5. Go to the Arduino script (found in ArduinoFiles\LedArduinoScript) and change the following:
    1. Set the mc_id (line 33) to its corresponding id in config.py.
    2. 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.
    3. If you have additional data lines (max 4), repeat step B as needed.
  6. Upload the Arduino script to your board.
  7. Run AudioPlayer.py. Press q to exit the program at any time.

About

Python and c++ script that uses FASTLED, Spleeter, and Librosa to decompose music to four instruments and send beat timings to LED strips.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published