Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_vis_spectrum_analyzer (Read 100818 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Re: foo_vis_spectrum_analyzer

Reply #451
I can easily reproduce the crash on a clean instance and changing the bins to sample rate based. This is bog standard 44100 - nothing fancy like the post above.
I edited my original reply. There's a regression for non-radix-2 FFT's, 32768 works without a problem (here); 65536 works but fb2k does not supply an audio chunk. I'll do some experimenting with the visualization stream to see if I can determine a valid range for the window size.

Re: foo_vis_spectrum_analyzer

Reply #452
Yeah, I see you got in 3 minutes before I posted. I was too slow.

Something else: flicker on resize - mind you, standard fb2k console and artwork panel are not good in that regard either. :D

edit: sorry about being slow getting the splitter at the start. :/


Re: foo_vis_spectrum_analyzer

Reply #453
Yeah, I see you got in 3 minutes before I posted. I was too slow.

Something else: flicker on resize - mind you, standard fb2k console and artwork panel are not good in that regard either. :D
The proverbial rock and a hard place: it was introduced when I fixed the 'startup' flash (white background when using dark mode) by erasing the background during startup instead of letting the render routine do it's thing a couple ms later. I'll see if I can come up with a solution before the release.

Re: foo_vis_spectrum_analyzer

Reply #454
v0.7.1.0-rc-2, 2024-02-27

* Fixed (Regression): Non-radix-2 FFT's caused a crash.

You can download it only from GitHub for now.


Re: foo_vis_spectrum_analyzer

Reply #456
What happens if you reset the component's configuration? I haven't had a crash for a while.

Edit: Confirmed for non-radix-2 FFT's. I'll issue a fix immediately. 32768 and 65536 should work.

It now works with RC-2, but I think that Spectrum is not working correctly when using the PGGB-RT Plugin in the part that was changed from 0.7.0.0 to 0.7.1.0.
32768 and 65536 did not work correctly on rc-1 when using the PGGB-RT.
After the PGGB-RT Plugin reads a source such as FLAC, it performs resampling in pre-processing, the source changes from FLAC to PGGB-RT, and the sample rate and bit depth are also changed.
I think that 0.7.0.0 took PGGB-RT information without problems with this operation, but 0.7.1.0 seems to make Spectrum based on information from the original FLAC source.

pic 1: Pre-Processing PGGB-RT (Original Flac 1.4.3 24/96KHz)
pic 2: Playing with PGGB-RT (32/384KHz)
We apologise for any inconvenience caused by poor English.
DAC: FiiO K7 Headphone: Audio-Technica ATH-W5000 (A2DC Connecter/Balanced Mod.)
Audio Source: FLAC (16/44 24/96 24/192) from Windows Server Public Folder.
Foobar2000 x64 Preview with Intel Core i9-7900X/MEM 48GB/Windows 11.

Re: foo_vis_spectrum_analyzer

Reply #457
What happens if you reset the component's configuration? I haven't had a crash for a while.

Edit: Confirmed for non-radix-2 FFT's. I'll issue a fix immediately. 32768 and 65536 should work.

It now works with RC-2, but I think that Spectrum is not working correctly when using the PGGB-RT Plugin in the part that was changed from 0.7.0.0 to 0.7.1.0.
32768 and 65536 did not work correctly on rc-1 when using the PGGB-RT.
After the PGGB-RT Plugin reads a source such as FLAC, it performs resampling in pre-processing, the source changes from FLAC to PGGB-RT, and the sample rate and bit depth are also changed.
I think that 0.7.0.0 took PGGB-RT information without problems with this operation, but 0.7.1.0 seems to make Spectrum based on information from the original FLAC source.

pic 1: Pre-Processing PGGB-RT (Original Flac 1.4.3 24/96KHz)
pic 2: Playing with PGGB-RT (32/384KHz)

I can't imagine what I could have changed between those versions that would cause a different usage of the sample rate. The sample rate is taken from the audio chunk as supplied by fb2k, over and over again; I assume post-processing.
Before the first audio chunk arrives 44100Hz is assumed.

Re: foo_vis_spectrum_analyzer

Reply #458
1) In the top/left corner I see "Stereo". If I delete it, it still shows a 'cursor'. Can that be removed?
Already fixed in the next release.
2) In a future update is it possible to add a fill option for artwork? A lot of my artwork is small so the images have a window-boxed border. The fill option (like in ESLyrics for example) will take care of that.
Already implemented but not yet exposed to the GUI.

One more feature request... The ability to have a custom image show, only when there is no artwork. I love that feature on ESLyric.

Re: foo_vis_spectrum_analyzer

Reply #459
Maybe I'm doing something wrong (I haven't been using this long) but my style color is always reset when I reboot fb2k. For example if Bar Spectrum is set to Fire, when I reboot it's set to Prism 1.

Although if I go back to Styles after a reboot, and click on Bar Spectrum, it will say Fire and give me the Fire colors. It just won't give me those colors unless I manually click on Styles/Bar Spectrum after a reboot.

Re: foo_vis_spectrum_analyzer

Reply #460
I can't imagine what I could have changed between those versions that would cause a different usage of the sample rate. The sample rate is taken from the audio chunk as supplied by fb2k, over and over again; I assume post-processing.
Before the first audio chunk arrives 44100Hz is assumed.
pic 1: This image shows the same song in 0.7.0.0 with foobar 2000 2.1.2 preview 0219 and the PGGB-RT plug-in in the same state.

The source is 384KHz, so the range up to 192KHz and up to the upper Spectrum analyzer limit setting of 96KHz is well displayed, but I thought the previous 0.7.1.0-rc2 did not display above 48KHz (up to 96KHz) (see previous See Pic 2 in post).
I have had similar symptoms since Beta1, but had repeatedly reverted back to 7.0.0.0, which is why I was late in reporting it.

pic 2 PGGB-RT file details dialogue
Unfortunately, the file information in PGGB-RT seems to bring the 24/96 Original Flac information.
If it is taken from Audio Chunk, it will be displayed in the same way as Spectrum in v0.7.0.0, regardless of the PGGB-RT information.
Furthermore, v0.7.1.0 only showed up to around 22KHz when playing 16/44KHz FLAC resampled to 32/352.8KHz on the PGGB-RT.

It would be best if I could read the source code directly and report back, but I am also a developer and I am traumatised to read and write source code because I am mentally beaten.

Sorry to add another report on v0.7.1.0 rc-2, but I have set the colour of the Spectrum Bar to Foobar 2000 Dark Mode, but after saving, I quit Foobar 2000 once, and after that, when I start Foobar 2000, the colour of the Spectrum Bar is displayed as Prism 1. The colour of the Spectrum Bar is displayed as Prism 1.
The colour of the Spectrum Bar is set to Prism 1, but in Configure it is set to Foobar 2000 Dark Mode, so as soon as the Bar Colour is selected, it reverts to the original colour.
However, when the Foobar 2000 is restarted again, the colour is Prism 1.

Config Reset has also been tried, but the same symptoms occur.
We apologise for any inconvenience caused by poor English.
DAC: FiiO K7 Headphone: Audio-Technica ATH-W5000 (A2DC Connecter/Balanced Mod.)
Audio Source: FLAC (16/44 24/96 24/192) from Windows Server Public Folder.
Foobar2000 x64 Preview with Intel Core i9-7900X/MEM 48GB/Windows 11.

Re: foo_vis_spectrum_analyzer

Reply #461
Maybe I'm doing something wrong (I haven't been using this long) but my style color is always reset when I reboot fb2k. For example if Bar Spectrum is set to Fire, when I reboot it's set to Prism 1.

Although if I go back to Styles after a reboot, and click on Bar Spectrum, it will say Fire and give me the Fire colors. It just won't give me those colors unless I manually click on Styles/Bar Spectrum after a reboot.
Prism 1 is the default. It sounds like something goes wrong after saving the settings or during reading them. Have you tried changing the number of bins to a known non-standard value e.g. 77 and check if it's reset too?

Re: foo_vis_spectrum_analyzer

Reply #462
I can't imagine what I could have changed between those versions that would cause a different usage of the sample rate. The sample rate is taken from the audio chunk as supplied by fb2k, over and over again; I assume post-processing.
Before the first audio chunk arrives 44100Hz is assumed.
pic 1: This image shows the same song in 0.7.0.0 with foobar 2000 2.1.2 preview 0219 and the PGGB-RT plug-in in the same state.

The source is 384KHz, so the range up to 192KHz and up to the upper Spectrum analyzer limit setting of 96KHz is well displayed, but I thought the previous 0.7.1.0-rc2 did not display above 48KHz (up to 96KHz) (see previous See Pic 2 in post).
I have had similar symptoms since Beta1, but had repeatedly reverted back to 7.0.0.0, which is why I was late in reporting it.

pic 2 PGGB-RT file details dialogue
Unfortunately, the file information in PGGB-RT seems to bring the 24/96 Original Flac information.
If it is taken from Audio Chunk, it will be displayed in the same way as Spectrum in v0.7.0.0, regardless of the PGGB-RT information.
Furthermore, v0.7.1.0 only showed up to around 22KHz when playing 16/44KHz FLAC resampled to 32/352.8KHz on the PGGB-RT.

It would be best if I could read the source code directly and report back, but I am also a developer and I am traumatised to read and write source code because I am mentally beaten.
The source has been available since the early versions.
Sorry to add another report on v0.7.1.0 rc-2, but I have set the colour of the Spectrum Bar to Foobar 2000 Dark Mode, but after saving, I quit Foobar 2000 once, and after that, when I start Foobar 2000, the colour of the Spectrum Bar is displayed as Prism 1. The colour of the Spectrum Bar is displayed as Prism 1.
The colour of the Spectrum Bar is set to Prism 1, but in Configure it is set to Foobar 2000 Dark Mode, so as soon as the Bar Colour is selected, it reverts to the original colour.
However, when the Foobar 2000 is restarted again, the colour is Prism 1.

Config Reset has also been tried, but the same symptoms occur.
2 reports about the same bug. I'll see if I can reproduce it.

Re: foo_vis_spectrum_analyzer

Reply #463
The source has been available since the early versions.
We are sorry that you were offended.
I will continue to use v7.0.0.0.

It is very hard for me to read and write source code due to depression at work, but I will try to follow it when I am feeling better.
We apologise for any inconvenience caused by poor English.
DAC: FiiO K7 Headphone: Audio-Technica ATH-W5000 (A2DC Connecter/Balanced Mod.)
Audio Source: FLAC (16/44 24/96 24/192) from Windows Server Public Folder.
Foobar2000 x64 Preview with Intel Core i9-7900X/MEM 48GB/Windows 11.

Re: foo_vis_spectrum_analyzer

Reply #464
The source has been available since the early versions.
We are sorry that you were offended.
I will continue to use v7.0.0.0.

It is very hard for me to read and write source code due to depression at work, but I will try to follow it when I am feeling better.
Don't worry, I'm not offended. I was just pointing out that if you have any insights or advice on the math I'm willing to listen. I think I know how to develop but I'm not an audio engineer.

Re: foo_vis_spectrum_analyzer

Reply #465
v0.7.1.0-rc-3, 2024-02-28

* Improved: Tweaked the background painting again to prevent flashes when resizing the component.
* Fixed (Regression): The selected gradient color scheme was not activated after startup.

You can download it only from GitHub for now.

Re: foo_vis_spectrum_analyzer

Reply #466
Don't worry, I'm not offended. I was just pointing out that if you have any insights or advice on the math I'm willing to listen. I think I know how to develop but I'm not an audio engineer.
Thank you for your concern.
I am not an audio-related developer either, but a Windows Server/Client Software Engineer who is recovering from depression.
I would like to add Skill in areas related to audio algorithms, etc., as they are my area of interest.

 I have summarised it in one image for clarity.
I would like to report that there is such a difference in display between v0.7.1.0 rc-2 and 0.7.0.0 when playing back a source upsampled to 32/384KHz with the same version of foobar2000 2.2 Preview 02-19 and the same version of the PGGB-RT plug-in The following is a report of the difference in display between v0.7.1.0 rc-2 and 0.7.0.0.
We apologise for any inconvenience caused by poor English.
DAC: FiiO K7 Headphone: Audio-Technica ATH-W5000 (A2DC Connecter/Balanced Mod.)
Audio Source: FLAC (16/44 24/96 24/192) from Windows Server Public Folder.
Foobar2000 x64 Preview with Intel Core i9-7900X/MEM 48GB/Windows 11.

Re: foo_vis_spectrum_analyzer

Reply #467
@pqyt
V.7.0.0 works great on both installed (1.6.17) and portable (2.2 preview x64) FBs on my W11Pro PC but none of the 7.0.1-xxx releases do even if configured identically.
Any idea what could be the cause?
TIA
(BTW, fantastic plugin, thx)

Re: foo_vis_spectrum_analyzer

Reply #468
@pqyt
V.7.0.0 works great on both installed (1.6.17) and portable (2.2 preview x64) FBs on my W11Pro PC but none of the 7.0.1-xxx releases do even if configured identically.
Any idea what could be the cause?
I assume the color changes are not intentional?

What I see is:
- the peak indicators are rendered completely wrong. They're suppose to be only 1 pixel high.
- The text is rendered weird.

What changed is that the rendered data is transformed using D2D to support mirroring and flipping. Since this all happens on right angles this should basically only mean a sign or an offset change in the coordinates. The transformations are built into D2D.

Are your GPU drivers up-to-date? What happens, as a test, if you flip the graph vertically or horizontally?

Re: foo_vis_spectrum_analyzer

Reply #469
The following is a report of the difference in display between v0.7.1.0 rc-2 and 0.7.0.0.
Assuming you did not change any of the X-axis parameters: RC1 fixed an old bug. The labels in linear mode were always calculated using log2() instead of using the selected scaling function. So the X-axis in RC1 and later should be correct.

As to why the FFT bins stop at about 50kHz I don't have a clue yet.

The problem is that your setup is a-typical. I don't have the upsampler you're using.

I'll see how far I get with the built-in tone generator I put in for debugging.

Re: foo_vis_spectrum_analyzer

Reply #470
I don't think there's anything wrong with the FFT bins. If the source material is 96 kHz there should not be anything above 48 kHz with high quality upsampling.

Re: foo_vis_spectrum_analyzer

Reply #471
I assume the color changes are not intentional?
They are not, they are supposed to be identical to the ones shown in the V7.0.0 clip. (Prism 1)

What I see is:
- the peak indicators are rendered completely wrong. They're suppose to be only 1 pixel high.
- The text is rendered weird.
I'd add that the the spectrum bars are also rendered wrong and behave as the peaks (hold time & accelaration).

What changed is that the rendered data is transformed using D2D to support mirroring and flipping. Since this all happens on right angles this should basically only mean a sign or an offset change in the coordinates. The transformations are built into D2D.

Are your GPU drivers up-to-date? What happens, as a test, if you flip the graph vertically or horizontally?

I'm using integrated grpahics (i7-9700 i.e. Intel UHD 630) with latest drivers.
Fliping also renders the image incorrectly but full scren works fine though lines and text are not as sharp as with v7.0.0.

EDIT:
l think I found the culprit. I had Graph Background set to "none", changing it to anything but restores correct rendering. This works fine in V7.0.0
Still, line edges in 7.0.1 are not as well defined/sharp as in 7.0.0

Re: foo_vis_spectrum_analyzer

Reply #472
I'll see how far I get with the built-in tone generator I put in for debugging.
In this setting, the X-axis is specified as 5Hz~96KHz and is not changed in 0.7.1.0 and 0.7.0.0.
However, we are not confident about the settings around the algorithm, as we had to repeatedly reconfigure the settings because they were initialised when we reverted to v0.7.0.0.
I thought I had reported the symptoms of the Bar not displaying. Sorry again for not adding more.

When PGGB-RT resampling a 16/44KHz source, v0.7.1.0 the Bar stops at around 22KHz.
This is one of the reasons why we thought that there might have been some changes.

Sorry for the difficult symptom report.
We apologise for any inconvenience caused by poor English.
DAC: FiiO K7 Headphone: Audio-Technica ATH-W5000 (A2DC Connecter/Balanced Mod.)
Audio Source: FLAC (16/44 24/96 24/192) from Windows Server Public Folder.
Foobar2000 x64 Preview with Intel Core i9-7900X/MEM 48GB/Windows 11.

Re: foo_vis_spectrum_analyzer

Reply #473
v0.7.1.0-rc-3, 2024-02-28

* Improved: Tweaked the background painting again to prevent flashes when resizing the component.
* Fixed (Regression): The selected gradient color scheme was not activated after startup.

You can download it only from GitHub for now.

"The selected gradient color scheme was not activated after startup."

This is still not fixed. Oddly, it was working yesterday when I installed it but today it's back to not remembering again. When I launch fb2k I have to click on the Style I'm using to get it to work. The other color sources work fine.

EDIT... It's just the Custom Color Scheme that doesn't work. The others do.

Re: foo_vis_spectrum_analyzer

Reply #474
v0.7.1.0-rc-3, 2024-02-28

* Improved: Tweaked the background painting again to prevent flashes when resizing the component.
* Fixed (Regression): The selected gradient color scheme was not activated after startup.

You can download it only from GitHub for now.

"The selected gradient color scheme was not activated after startup."

This is still not fixed. Oddly, it was working yesterday when I installed it but today it's back to not remembering again. When I launch fb2k I have to click on the Style I'm using to get it to work. The other color sources work fine.

EDIT... It's just the Custom Color Scheme that doesn't work. The others do.
Duh. I really should start using my own support routines. It'll be fixed in the release version.