RanzQ / hyperion-audio-effects

Hyperion audio effects dev kit using Gstreamer
MIT License
47 stars 8 forks source link

How to get this effect? #20

Closed behtjes closed 8 years ago

behtjes commented 8 years ago

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?

behtjes commented 8 years ago

bump :)

RanzQ commented 8 years ago

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.

behtjes commented 8 years ago

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.

RanzQ commented 8 years ago

@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,
RanzQ commented 8 years ago

Video of the changing color and limited hue: https://www.youtube.com/watch?v=AOv9BwbtA6w

behtjes commented 8 years ago

Very nice! I'll try it asap

RanzQ commented 8 years ago

@behtjes also the effect is nicer if you use "band-width-exp": 2, but takes some processing power, not suitable for rpi. :P

behtjes commented 8 years ago

OK. What's the max bandwidth for the pi3?

RanzQ commented 8 years ago

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.