Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WLED does not respond to stream from PC #5

Open
thejustsoul opened this issue Dec 15, 2024 · 5 comments
Open

WLED does not respond to stream from PC #5

thejustsoul opened this issue Dec 15, 2024 · 5 comments

Comments

@thejustsoul
Copy link

thejustsoul commented Dec 15, 2024

In WLED 0.15.0, Audio Reactive Usermod support has been officially added. I'm trying to set up data reception from a PC, but WLED doesn't respond.

At the same time, transmission from another WLED works fine (there is an analog microphone), but neither the official nor the MoonModules version of WLED respond to the stream from the PC. With LedFX, everything is transmitted normally.

What am I doing wrong? How can I make SR-WLED-audio-server work with WLED 0.15.0+?

изображение
изображениеизображение
изображение

UPD: I had a network bridge for two network cards enabled in OS W10 (it should be like that), I thought maybe the problem was in it, so I deleted it. I turned off all network cards except the main one, it seemed like the signal started to be transmitted, at least some effects react to the sound (play\stop), some don't react at all (although all have a melody icon), but it seems to me that it shouldn't work like that, unclear effects (as if there was an overload in volume, plus some kind of delay).
изображение

@Victoare
Copy link
Owner

If you set the "local IP" as your PC ip address then it should work without disabling the other interfaces.

I will test the 0.15.0 version soon.

There is a possibility that the official and the moonmodules versions uses different ranges (and therefore that overload effect)
If you have two modules at hand you can check the two versions side-by side. They should receive the same data at the same time and produce the same effects (I will also do this soon)

One question though: what hardware do you use? esp8266 or esp32?

@thejustsoul
Copy link
Author

thejustsoul commented Dec 20, 2024

I use ESP32. And the address is already entered (you can see it on the screenshot). They react the same, both the official version and the modified one (it wouldn't hurt to adjust the sensitivity volume/capture in your program and/or auto level, so that it doesn't send too much with "excessive volume".. I also chose a virtual audio cable to avoid extraneous noise and the response is exactly the same.

@Victoare
Copy link
Owner

Yes, I saw the ip, but some folks get confused and set the wled modules address there.
Checeked today with the official wled 0.15.0 (esp8266 160mhz) version and it is working as intended.
There is an automatic gain control implemented in the code to "max-out" the freq movement so there will be a frequency bar that will go almost to the top regardles of the volume of the media. Not sure if this is what your issue is.
Maybe an option to turn AGC off and let the user play with attenuation and compression settings or give more control over the AGC itself, but not really planning on that yet.

@thejustsoul
Copy link
Author

thejustsoul commented Dec 22, 2024

I took a new board on EPS8266, connected it to another WS2812B strip, flashed it with WLED 0.15.0 160 Mhz, turned on Audio Reactive and Recieve mode. Reset the network, connected via WiFi (instead of cable), changed the IP in the program to the adapter address. Nothing changed. Can I see how it works for you? For example, on the Gravcenter, Gravmetric, Gravimeter effects. For me, they just light up in one color and rarely blink.

UPD: Now I tried to adjust the Reaction parameters and it at least somehow started to react in time (but even then with a big delay), maybe this is the problem? I also adjusted the sensitivity under the effect, but it was still not right. What should be the correct parameters combination?
изображение
By the way, led.fx does not react to the selected parameters at all, it probably transmits a "signal" bypassing them

@Victoare
Copy link
Owner

The main difference that LedFX drives the individual leds directly while the soundReactive usermod receives information about the frequency structure and the effects decides what to do with it.

I am aware that a couple effect is not or hardly working. Sadly there is no proper documentation and I mostly gathered the current info reading wled's code and try to understand it.

For led-strip I usually use it with DJ Light with "cady factory" settings:
image

You can check the delay and sensitivity to the music here: https://youtu.be/b4_3JbWpXxM
PingPong ball led strip using DJLight, the left 2D matrix using GEQ the right one using "funky plank", the infinity mirror a fourth effect (not sure which). Each one using its own esp8266 module.
Btw this is an older video and DjLight is much more colorful with the current version.
The delay should be minimal, like less than 50ms. If you experiencing longer delays then there will be some other (possibly network related) problem.

There is no strict answer for the "correct parameter". I usually disable all limiter or AGC on the wled side and on the app side I am using log scale (without it, only the first bar will react the bass and mid frequencies and the others will react to higher freqs) and "square root (energy)" as value scaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants