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.67k stars 642 forks source link

Purple and blue only using spectrum? #356

Open kylerobert425 opened 2 years ago

kylerobert425 commented 2 years ago

Hey just curious if this is the intended control or needs to be changed with the rgb values but I only get blue and purple colors while using the spectrum visualization... Other modes and testing with led.py show all other colors. https://user-images.githubusercontent.com/25539934/163299008-14fa1202-4dc6-4326-9176-3a3c183d00dd.MOV

(Using a raspberry pi)

joeybab3 commented 2 years ago

That doesn't seem quite right, are you sure you set your strip mode correctly (GRB vs RGB, etc...)?

kylerobert425 commented 2 years ago

Oh no I'm not sure, where would that be set? Its just seems odd that in the test, I think the colors show correctly. Thanks for the support! This is such a cool project

nathaniel-c-wheeler commented 1 year ago

+1 on this. I originally thought it was a failure with my logic level converter, but I've triple-checked that it's working. All other color tests are succeeding, I think it's just how the color distribution of the function looks. The visualization looks fairly accurate to what I'm seeing: a lot of blue, a fair amount of red, and only a bit of green.

nathaniel-c-wheeler commented 1 year ago

As a workaround, I used the original rgb vectors as hsv and converted them. I've found hsv is a much friendlier colorspace to experiment in than rgb. I can provide more details on request, or I'll push a fork you can look at.

kylerobert425 commented 1 year ago

oh interesting, yeah maybe I'll take a look at the hsv colorspace instead. I've played around with changing the RGB values but then it's always just a two-color result on the spectrum despite the other types of visualization showing all the colors