Help - Search - Members - Calendar
Full Version: foo_vis_simple_spectrum
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2
foosion
I have written this plugin for my own use and have no intentions to maintain or develop it on a regular basis. If it works for you and you like it, well, great. If it causes problems for you, you have the choice to
1) stop using it, or
2) try to fix it yourself.

Download links (updated for latest version)
foo_vis_simple_spectrum-0.1.6.zip (normal version)
foo_vis_simple_spectrum-0.1.6-src.zip (source code for normal version)
foo_uie_simple_spectrum-0.1.6.zip (panel version)
foo_uie_simple_spectrum-0.1.6-src.zip (source code for panel version)

Documentation (a bit outdated)
You need to have foo_vis_manager.dll installed for this plugin to work.
To enable it, activate visualization processing (under "Preferences->Visualization"), and make sure that the "Simple spectrum" entry in the components menu is checked.
If the plugin is enabled, the window with the spectral view will pop up when you start playing music. It will vanish after two seconds, if playback is stopped. In case seeking takes longer than two seconds, it will vanish as well.
Left clicking on the window cycles through the following display modes:
- all channels: displays all channels
- mixdown: all channels are mixed down to mono
- mean squared difference: computes the mean of all channels, and displays the mean squared difference of all channels from this mean value
Right clicking on the window opens the configuration for the plugin.

Missing features
If someone has a feature request or wants to implement a feature, I suggest to post a message to this thread. I'll start with some missing features:
- make the window resizable
- add configuration for the energy range
- add configuration for intermediate colors in the energy display (the implementation already supports this)
foosion
QUOTE(foosion @ Jul 28 2003, 01:39 PM)
If it causes problems for you, you have the choice to
1) stop using it, or
2) try to fix it yourself.

I obviously forgot one option:
3) Report the problem in this thread.

Problem 1 (flashing window): While playing music, the window disappears every two seconds, and immediately pops up again. This is triggered by flushing the pipeline (i.e. seeking or stopping playback) while the plugin is disabled.

This should be solved now.
ssamadhi97
more fixes to remedy window flashing after massive seeking..

download meeee

(no src included.. just added KillTimer to g_flush())
Jan S.
request: decode whole file and show result as in CEP.
ssamadhi97
fixed channel order (left channel is displayed at the top of the window now etc)

clickie
foosion
QUOTE(Jan S. @ Jul 28 2003, 10:52 PM)
request: decode whole file and show result as in CEP.

Would be a nice feature, but after all, this is a vis plugin. I don't know if the vis api supports something like this.
kode54
You could make that a context menu feature for a single file, using the input helper to decode the file. It was also suggested that it be possible to save a print of the entire file as one big PNG file.

Have fun.
Messer
QUOTE(kode54 @ Jul 29 2003, 01:10 AM)
It was also suggested that it be possible to save a print of the entire file as one big PNG file.

... and this suggests using diskwriter service biggrin.gif
ssamadhi97
updated compile for most recent betas:

foo_vis_simple_spectrum for fb2k 0.7b29+ --> download here

:B
foosion
New version (still for 0.7b29+):
plugin
source code

changes:
1) integrated ssamadhi97's new energy->color mapping into my source (puts more emphasis on low energy values)
2) "Ignore lagged chunks" option replaced by "Process no more than {n} consecutive lagged chunks", where {n} is an input box.
3) added experimental option to try to compensate for windowing artifacts from the FFT.
foosion
The lagged chunks option was broken (thanks goes to the spinner control dry.gif). The spinner control is no more. After all, pressing the down arrow to increment the value wasn't that intuitive...
foosion
made vis window resizable:
plugin
source code

What? The display looks crappy after shrinking and immediately re-enlarging the window? Well, don't do this then. tongue.gif
upNorth
A very nice improvement, thanks smile.gif
McLone
d'yo know this winampish vis_nsfs.dll? there's oscilliscope w/configurable color and vertical usage %% along with voiceprint. So i want ocsilliscope and autoscroll too as i don't want winamp.

EDIT: eehh... we need to involve Ryan Geiss to vis programming... But Geiss leaves much to be desired as the person (I had bad experience of dialogue with him about two years ago). Or I simply lucky/stupid?
foosion
QUOTE(McLone @ Aug 30 2003, 01:50 AM)
d'yo know this winampish vis_nsfs.dll?

No.

QUOTE
there's oscilliscope w/configurable color and vertical usage %% along with voiceprint. So i want ocsilliscope and autoscroll too as i don't want winamp.

Take the source and add it, that's ok with me. biggrin.gif
As I have stated earlier, I use this plugin as a tool, so it's unlikely that I'll add any "fancy stuff". (So it does not have the look&feel of CEP, but that's ok, since it isn't CEP.) I might add autoscrolling, but don't hold your breath.

Disappointed? Dont give up hope, there are more vis programmers than just Ryan Geiss (perhaps even some good ones). wink.gif
upNorth
@foosion: I use this plugin quite alot, but IMHO a scale would be nice. I was thinking of an optinal, vertical scale on the left side to make it easier to place the cut off and other details.

Btw: I downloaded version 0.1.1 from your plugin page, but foobar reports it to be v0.1.0. Not a big deal, but I just thought I should let you know, in case you uploaded an older version or something by accident.
foosion
QUOTE(upNorth @ Nov 14 2003, 11:23 AM)
Btw: I downloaded version 0.1.1 from your plugin page, but foobar reports it to be v0.1.0. Not a big deal, but I just thought I should let you know, in case you uploaded an older version or something by accident.

0.1.1 claims to be 0.1.0, doh.
kalmark
QUOTE(ssamadhi97 @ Jul 28 2003, 11:08 PM)
fixed channel order (left channel is displayed at the top of the window now etc)

OK, is this still so? Later in this thread foosion announced a new version, mentioning implementing other changes made by ssamadhi97, but not this one. So, what is the channel order in the vis? unsure.gif
Thanks

I think I made a mistake in my own vis's channel ordering, but can't quite see it in my own source...maybe checking against simple_spectrum will help me...
foosion
QUOTE(kalmark @ Jan 2 2004, 02:49 PM)
QUOTE(ssamadhi97 @ Jul 28 2003, 11:08 PM)
fixed channel order (left channel is displayed at the top of the window now etc)

OK, is this still so?

It is.
kalmark
Thanks, foosion. There was some mixup with the channels in my own vis, and I wanted to double-check with your vis. All is fine now biggrin.gif
foosion
Just a small update:

foo_vis_simple_spectrum-0.1.5.zip: now with scrolling
foo_uie_simple_spectrum-0.1.5.zip: a panel version (single instance)

Both versions contain several known glitches like frequency scale not redrawing and colors not changing after you edit them; the latter can be fixed be selecting a new color interpolation or by reselecting the old one. Fixing these could reasonably only be done by rewriting the component from scratch, and I'm not planning to do that in the near future. Also if you want some new features, you'll have to add them yourself or find someone else to add them for you (but not me wink.gif).
upNorth
Love it! Especially the panel. smile.gif

Edit: No need for a quote...
upNorth
How come the panel version is so much brighter? IIRC, I use the default coloring, and in the window version the lowest level is close to black, but in the panel it's (medium) purple.

Screenshots:
png (142kB)
jpg (24kB)

Not that important, just curious. wink.gif
janjan
I think there is a bug in the panel plugin when resizing the columns ui sidebar. Just add the simple spectrum to the sidebar and then minimize the width. When the sidebar is about a few pixels wide the plugin will crash.
A_Man_Eating_Duck
is there any chance of geting a panel version of VU meter (foo_vis_vu_meter) ?

*runs and hides in the corner awaiting objects to be thrown at him
foosion
QUOTE(janjan @ Nov 1 2004, 09:57 AM)
I think there is a bug in the panel plugin when resizing the columns ui sidebar. Just add the simple spectrum to the sidebar and then minimize the width. When the sidebar is about a few pixels wide the plugin will crash.
*

Confirmed. I'll post a fixed version soon.

QUOTE(A_Man_Eating_Duck @ Nov 1 2004, 10:15 AM)
is there any chance of geting a panel version of VU meter (foo_vis_vu_meter) ?
*

Well, it's on my personal wishlist already. biggrin.gif
foosion
Some bug fixes (thanks to kode54 to pointing out the resource leak when resizing the window/panel):

foo_vis_simple_spectrum-0.1.6.zip: now with scrolling
foo_uie_simple_spectrum-0.1.6.zip: a panel version (single instance)
ep0ch
Hello,

Is it possible to remove the grid?

Cheers
foosion
Updated panel version for ui_extension SDK 5.0.0, download link remains the same.
Digisurfer
Edit: Nevermind, got it working. rolleyes.gif
khiloa
I have put the dll in my components dir and everything and I went to enable vis processing. Its all checked and all that good stuff. But nothing is showing up.

Any idea's why its not showing up?
ssamadhi97
because you didn't start it by using Visualization -> Simple spectrum in the Components menu, maybe?
khiloa
Well I copied my playlist formatting and all to a new foobar config file and now it all works fine. Before I didn't have that menu at all.
rexy
foosion, don't you think you ought to change
CODE
wc.hbrBackground = 0;
to
CODE
wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1);
?
I was looking through your code because I wanted to learn how to use your UIE helper and noticed that. I actually had some random occurences (by random, I mean I didn't bother figuring out what was the case) when the panel window was (pseudo) transperant.
By the way, thanks for your UIE helper. It really helps write a much more managable UIE panel.
foosion
QUOTE(rexy @ Dec 17 2004, 11:34 PM)
foosion, don't you think you ought to change
*
I think I ought to change quite a lot in this component occasionally, but thanks for the hint.

Glad that you like the UIE helper. smile.gif
deer
how show(enable) foo_uie_simple_spectrum.dll in foo_ui_columns ? :-/
foosion
QUOTE(deer @ Dec 18 2004, 01:27 PM)
how show(enable) foo_uie_simple_spectrum.dll in foo_ui_columns ? :-/
*
Do you have the latest version of foo_ui_columns? If so, rightclick on the toolbar or on a header in the sidebar and choose "Visualizations/Simple spectrum".
deer
QUOTE(foosion @ Dec 18 2004, 06:28 AM)
QUOTE(deer @ Dec 18 2004, 01:27 PM)
how show(enable) foo_uie_simple_spectrum.dll in foo_ui_columns ? :-/
*
Do you have the latest version of foo_ui_columns? If so, rightclick on the toolbar or on a header in the sidebar and choose "Visualizations/Simple spectrum".
*


hmmm...

if foo_ui_columns 1.2.b3+foo_uie_simple_spectrum 1.5 work good, why in 1.6 version it not work ? dry.gif :-/

PS: this menu "Visualizations/Simple spectrum" is just gone dry.gif :-/

2foosion: you don't know, when appear foo_uie_bacon(or g-force), foo_uie_equalizer , foo_uie_id3tag_changer ? tongue.gif
foosion
QUOTE(deer @ Dec 19 2004, 02:31 PM)
if foo_ui_columns 1.2.b3+foo_uie_simple_spectrum 1.5 work good, why in 1.6 version it not work ?   dry.gif  :-/
The UI extension API in foo_ui_columns changed from 0.1.2b3 to 0.1.2b4, foo_uie_simple_spectrum 0.1.6 requires foo_ui_columns 0.1.2b4 or newer.

QUOTE(deer @ Dec 19 2004, 02:31 PM)
2foosion: you don't know, when appear foo_uie_bacon(or g-force), foo_uie_equalizer , foo_uie_id3tag_changer ?   tongue.gif
How would I know that? As for a panel version of the Winamp vis wrapper, I think it has been said that it's impossible.
deer
QUOTE(foosion @ Dec 19 2004, 06:07 AM)
QUOTE(deer @ Dec 19 2004, 02:31 PM)
if foo_ui_columns 1.2.b3+foo_uie_simple_spectrum 1.5 work good, why in 1.6 version it not work ?   dry.gif  :-/
The UI extension API in foo_ui_columns changed from 0.1.2b3 to 0.1.2b4, foo_uie_simple_spectrum 0.1.6 requires foo_ui_columns 0.1.2b4 or newer.


it's not help sad.gif
http://www.hydrogenaudio.org/forums/index....ndpost&p=260883

QUOTE(foosion @ Dec 19 2004, 06:07 AM)
QUOTE(deer @ Dec 19 2004, 02:31 PM)
2foosion: you don't know, when appear foo_uie_bacon(or g-force), foo_uie_equalizer , foo_uie_id3tag_changer ?   tongue.gif
How would I know that? As for a panel version of the Winamp vis wrapper, I think it has been said that it's impossible.
*


i's very bad sad.gif but somebody create something better cool.gif
Dark_Angel
QUOTE(foosion @ Nov 1 2004, 03:17 PM)
QUOTE(A_Man_Eating_Duck @ Nov 1 2004, 10:15 AM)
is there any chance of geting a panel version of VU meter (foo_vis_vu_meter) ?
*

Well, it's on my personal wishlist already. biggrin.gif
*



Any update on this matter? huh.gif
foosion
QUOTE(Dark_Angel @ Feb 10 2005, 10:26 PM)
Any update on this matter? huh.gif
*
No, it's rather low on my wishlist.
amonrei
I'm not really a fan of any vis but this one rocks. gun2.gif Good job!
nightgaunt
this is a really nice plugin, thanks much.

i have been interested for a long time in getting a simple spectrum with a log-scale y axis. this seems like it should be really simple, and it would have the beautiful consequence that the spectrum could be superimposed on a musical scale. in fact, one could ideally note use chromatic scale halfsteps as the tick marks.

thanks very much for your great work.

stephen
foosion
A logarithmic frequency scale is not very high on my to-do list currently. I think some older version had one, but it was removed when I restructured the code. Before you ask: no, it's not trivial to add it back right now.
nightgaunt
QUOTE(foosion @ Jun 22 2005, 04:37 PM)
A logarithmic frequency scale is not very high on my to-do list currently. I think some older version had one, but it was removed when I restructured the code. Before you ask: no, it's not trivial to add it back right now.
*



Ah, that's too bad. If you ever *do* add it back, or if the older version is lying about somewhere handy, I'd be much obliged. In the meantime, thanks much, anyway. It's a nice piece of software.

stephen
BloKosss
I have a problem with this plugin : I was fighting for a long time against some low level noises in my speakers, when foobar's playing. Like a kind of 2-3 seconds wobulation from low to high to low frequencies, appearing ramdomly in time. I recorded a sound played by foobar with cooledit and spectrumed it. I saw the sound I was actually playing, and a parasite noise represented by many diagonal lines. Foobar was the only player to generate such noises, so I decided to deactivate each component one by one. It's a fact that when i close the 'simple spectrum panel', the noise disappears (foo_uie_simple_spectrum-0.1.6). Does anyone have ever noticed that??? is it posible that a vis. plugin affects the sound of foobar?
Anyway, I'm happy to have find the solution, but also disappointed cause i like this nice spectrum... crying.gif
visiblyshaken
Hate to resurrect old threads, but I was playing with foo_uie_simple_spectrum and I was wondering how trivial (or not) it would be, when running it with all channels (2 in my case) to have them back to back (i.e. flip the bottom display top to bottom)

thoughts?
rats
i seem to have a problem with simple spectrum... problem is it isn't showing up blink.gif
Cadavre
i need foo_vis_manager

please help !
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.