scottlawsonbc / audio-reactive-led-strip

:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi
MIT License
2.7k stars 641 forks source link

Change mode without GUI #230

Open M0nSt3rManu opened 5 years ago

M0nSt3rManu commented 5 years ago

Hi man, love this program, but i had some problems with the gui and i disabled it. Is there any way to change the mode without it?

joeybab3 commented 5 years ago

in visualize.py there is this line:

visualization_effect = visualize_spectrum
"""Visualization effect to display on the LED strip"""

Change it to the effect you want.

@scottlawsonbc We should move this to config.py maybe as "default_effect" or something?

M0nSt3rManu commented 5 years ago

Thank you so much for your fast response, can you list me the names of the effects to use?

joeybab3 commented 5 years ago

You caught me at work so I figured I might as well. The effects can also be found in visualize.py and are as follows:

visualize_energy
visualize_scroll
visualize_spectrum
SealedJoy commented 5 years ago

Simple solution might be call visualization.py with arguments? example: python python/visualization.py spectrum I've added that feature to my fork so I'll create a pull request if you guys don't mind @joeybab3 @scottlawsonbc 👍

joeybab3 commented 5 years ago

Something similar was proposed in https://github.com/scottlawsonbc/audio-reactive-led-strip/pull/185, I ended up closing it because there was more added and I couldn't get an explanation from the original author.

I'll have a look at your pull and see if I can get some testing done.

SealedJoy commented 5 years ago

Wow yeah those changes look much more in depth than what i added, but hopefully that makes it easier to unify. Have you tried that fork yet? I could try and help decifer it if needed

7RST1 commented 5 years ago

Hi, saw this issue hasn't been updated in a while, and I'd really like to see the feature proposed here. Anything new?

NickSutton commented 5 years ago

This functionality has been incorporated in to this fork: https://github.com/naztronaut/dancyPi-audio-reactive-led