ahodges9 / LedFx

LedFx is a network based LED effect controller with support for advanced real-time audio effects! LedFx can control multiple devices and works great with cheap ESP8266 nodes allowing for cost effectvice syncronized effects across your entire house!
MIT License
384 stars 91 forks source link

could not broadcast input array from shape #112

Open swampdogmash opened 4 years ago

swampdogmash commented 4 years ago

Just found this project and found it very useful, certainly a lot of effort gone into making it work.

I've been trying out LedFx in conjunction with WLED to get some sound activated LEDs working (after all, that's what it for , right?)

I have a 50 LED string attached to WLED and all is working fine. I managed to eventually get a windows installation of LedFx running, and entered my device. My plan was to use multiple "energy" effects to create a 5x10 pixel graphic equaliser. The plan was to break up the string into 5 10 pixel sections and change the settings on the energy effect differently for each section and create a create GEQ.

In doing so (and maybe my misunderstanding of WLED and LedFx - I set WELD to have 50 leds, RGB and start channel of 1 for DMX. Universe 1. I can't see how ti break that into 5 10 pixel ((30 channel) universes so I decided to try and use the offset function in LedFx.

This seemed to cause some issues. When 2 devices with the same IP and Univers number are created, but with different offsets, it really doesn't like it...

ValueError: could not broadcast input array from shape (5) into shape (10) Stopping LedFx.

I've noticed a number of other issues too, will try and narrow them down and report them seperately.

If you know how to do what I am thinking withthe GEQ (without using 5xWLED and 5x 10 pixel strings), could you also let me know?

I guess a GEQ effect that knows a string is one continuous line but can apply different energy effectd across it would be cool as a feature request. Values for how many LEDs per "channel" on the GEQ and options for how the leds are joined between each channel (eg channel one is 1-10, channel 2 is 20-11 or the alternative is channel 1 is 1-10 and channel 2 is 11-20), plus the ability to define the number of channels and the frequency ranges would be super cool. There is a similar feature in Xlights but it's hard to get that to work "live"