Skip to content

Animate a row of individually adressable leds using a raspberry pi to react to a given song.

License

Notifications You must be signed in to change notification settings

pabloqb2000/py-led_audio_visualizer

Repository files navigation

py-led_audio_visualizer

Animate a row of individually adressable leds using a raspberry pi to react to a given song.

Libraries

For building this proyect I used:

  • Numpy: for basically everything
  • Matplotlib: for visualizing the audio results
  • cv2: to generate the resuliting videos
  • colour: for conversions between colours
  • rpi_ws281x: to control the led strip (from this repo)

Volume animations

Volume animations are made based on the volume of the signal in the .wav file.
The signal is averaged using a hamming window, as show in:
Where the blue and orange lines are the channels of the song
The green line is the result of the average
The red line is the result of discretacing the green line for a 30 fps video
One of the animations that can be created using this is the following

FFT animations

This animations are based on the fft of the singal.
This animations depend on more values such as:

  • The size of the fft window
  • The maximum frequency
  • Some interpolation parameters
    You can see the value of the leds based on these fft in here:
    One of the animations that can be created using this is the following

About

Animate a row of individually adressable leds using a raspberry pi to react to a given song.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published