Closed behtjes closed 7 years ago
bump :)
Sorry, forgot to answer. :) It is color_spectrum
but an earlier version. I've changed the implementation quite a lot. The setting mirror
makes 2 identical sides. The setting color-speed
should enable changing colors but it's not currently implemented. I'll check this TODO at some point if it's doable.
Ok nice. Thanks for the answer. It would be nice to be able to change colors, or chose the amount of colors/octaves that will be used.
@behtjes I made some updates. Now you can adjust colors with hue-from
, hue-to
parameters. If the range is 0.0 - 1.0
full rainbow is used, otherwise the leds get color gradient from - to - from
. Use color-speed
for moving colors (only positive integers supported now). Mirror mode isn't working yet (octaves for other side are not flipped).
For example blueish colors only:
"color-speed": 2,
"hue-from": 0.5,
"hue-to": 0.7,
Video of the changing color and limited hue: https://www.youtube.com/watch?v=AOv9BwbtA6w
Very nice! I'll try it asap
@behtjes also the effect is nicer if you use "band-width-exp": 2
, but takes some processing power, not suitable for rpi. :P
OK. What's the max bandwidth for the pi3?
Haven't tried, but I guess 4-5. Run it and check with top
how much CPU it uses. The setting means accuracy, for example with 2^4 you have 16Hz for each "volume bucket". So the bass range has more accuracy, if you check how octaves work (every upper octave has double the frequency range than lower). :)
About that video: I run the audio effects on my PC and connect to a Pi2 for led control. So I get the audio processing power from the PC.
I've seen your effect on youtube, but this isn't the color spectrum right?
https://www.youtube.com/watch?v=HiAlv-mW9UI
How to get this effect?