psieg / Lightpack

Lightpack and Prismatik open repository
GNU General Public License v3.0
1.57k stars 188 forks source link

Pulseaudio Sound Visualizer ? #380

Open Xeon0X opened 4 years ago

Xeon0X commented 4 years ago

Hello, I installed and uninstalled 5.11.2.22 and .23, manually and with "install updates automatically", after uninstalling the original Prismatik software. I am using Adalight for 96 ws1812b leds connected to an Arduino on a Windows 10 PC. I have sound visualization mode enabled on a new profile. It works, and I have two options: Prismatik (default) and Twin Peaks, but I see "Pulseaudio Sound Visualizer" on the changelog. Where can I find this mode? I need to install things other than Prismatik for this mode? Or I just have an error and I can't see this mode here, both in .22 and .23 ? Thanks for the help.

zomfg commented 4 years ago

it's not what you think, it's what allows the linux version to grab and process system sound

Xeon0X commented 4 years ago

oh ok, thanks. And is it possible to custom how the visualizer react to the sound, more than just effect and color, because it's very... flashy ? It just blinks on the right side of my monitor and a static color on my left side with twin peaks. Maybe change the sensibility, where the effect starts and ends... How can I do it ?

zomfg commented 4 years ago

Not possible yet. I experimented with moodlamp customization via javascript, it works pretty well, it could be applied to sound too...but it's yet to be done. It sounds (ha) like yours isn't working properly from your description, normally with Twin Peaks both sides act symmetrically and shouldn't just blink randomly, it's still flashy in a way, but should be smooth-ish Enable logs and post here

Xeon0X commented 4 years ago

Ok I think it's just my leds configuration that create this. My led 1 is in the lower right corner of my screen with my led 96. The Twin Peaks work in diagonally, form left to right, from bottom to top. And it don't work randomly, it's just that it works by powering on or off the leds, that make in my case just big flashs. So, I if there was any options for customize the sound visualization, that would be perfect. (start and end, smooth led power on and off...)

zomfg commented 4 years ago

You can try re-running device wizard (Device tab) and changing "Start offset" so it's not in the corner. What's your baudrate?

Xeon0X commented 4 years ago

"Start Offset" change nothing for the sound visualizer. I think that just take the first and last leds as start and end for the Twin Peaks mode. For example, if I said that I have 10 leds, the led 1 for the arduino is for Prismatik the start, and the led 10 the end, even if I set the start offset to 5, that will not make the effect start at led 5 for the arduino. But this changes the order for screen grabbing. My baudrate is 112500.

zomfg commented 4 years ago

Sounds like another thing to fix!.. Can you double it just to see? (and a video of twin peaks blinking would be great)

Xeon0X commented 4 years ago

So with 230400 (because it was 115200 and not 112500), twin peaks work a little better, it's more reactive. I don't have a video but I can tell you that there something wrong, or maybe I think that it's wrong because I have seen this video : https://youtu.be/nM6Mx6_irLk?t=101 at 1:40 and that is a little different, both in Prismatik default or in Twin Peaks. Maybe he uses another software even if there is a link to this Prismatik in the descriptin. So, if you play the video, do you have the same effects ? If yes, I have a problem or I don't know, if no, maybe it's fine. If no, how can I have the same effect ? Also, if start offset is supposed to change where the effect start in Twin Peaks, I have a problem here.

zomfg commented 4 years ago

It's hard to look at both on my test setup, but it seems to be very close with the video. I don't know what his setup looks like, but my guess is his wiring starts in bottom right corner and goes up, and he probably uses the start offset to move to that corner. And you are correct, the start offset currently does not affect moodlamps/sound (this needs to be fixed), which is why Twin Peaks (Pop and Trap portions of the video) on that setup thinks top-left is the middle and bottom-right is start/end. But I can't visualize what you see with your description... the best would be a video of your screen playing that other video in fullscreen. Your profile and logs might help but..

Xeon0X commented 4 years ago

Ok, how can I enable logs / where there are because I have found noting. I have logging level to 1. I will try to show you a video but Twin peaks, for me, is juste one line, that start at the first led and at the last, and go in both direction for the opposite corner, the middle. More the sound is "intense", more the line go to the other corner, with a gradient from the first color to the second color. It is not two lines, that react differently from the sound, which one start at the first and last led and go for the middle, and with the other that start at the middle led and go to the start and end like the video.

zomfg commented 4 years ago

Ok, how can I enable logs / where there are because I have found noting. I have logging level to 1.

C:\Users\<you>\Prismatik

I will try to show you a video but Twin peaks, for me, is juste one line, that start at the first led and at the last, and go in both direction for the opposite corner, the middle. More the sound is "intense", more the line go to the other corner, with a gradient from the first color to the second color. It is not two lines, that react differently from the sound, which one start at the first and last led and go for the middle, and with the other that start at the middle led and go to the start and end like the video.

well, now I'm confused because you are describing what Twin Peaks is supposed to do (start and end with color A go to the middle with color B, in sync), and it's what I see on my setup and in the video, and yet earlier you described it as almost random flashing with partially static parts.

Xeon0X commented 4 years ago

the logs here : Prismatik.0.log Sorry for the bad quality : https://www.youtube.com/watch?v=2alqjF3JI3w&ab_channel=Xeon0X Also, the sound is edit in the video. So, start and end with color A go to the middle with color B, in sync + random flashing with partially static parts (even if it's not really random), right ? Or it's just me that do not understand Twin Peaks ?

zomfg commented 4 years ago

what sketch are you running?

Xeon0X commented 4 years ago

LEDstream_FastLED.zip Here with my settings. I don't remember where I find this.

zomfg commented 4 years ago

I'm not able to reproduce your issue even with your sketch, so I don't know. It could be that Prismatik is getting wrong sound data: did you pick the right device? (normally it's one of the loopbacks on windows) is it stereo? some crazy equalizer settings?

Xeon0X commented 4 years ago

I tried every device, only one works and that look like before. I tried on a other headset but nothing change. I have a Corsair Void Pro and a Corsair ST100, that is detected as a headset. I tried both when running Icue, the Corsair software, and when it was close. When Icue is running, I have test both in stereo and in "Dolby". I have also enable Windows sonic for spatial sound... nothing change. The lights react with sounds, but it's weird. Thank you for your help, even if the problem is still here, but I think I will just use the ambilight.