HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: godrick on 2012-10-10 17:27:44

Title: foo_musical_spectrum (discussion)
Post by: godrick on 2012-10-10 17:27:44
A visualization component for the default UI.
(http://i.imgur.com/Ins7Jl.png) (http://imgur.com/Ins7J) (http://i.imgur.com/aCiYqm.png) (http://imgur.com/aCiYq)

Download: https://hydrogenaud.io/index.php/topic,97404.0.html

Very nice!  It would be great if the tooltip could also display the amplitude.  thanks!
Title: Re: foo_musical_spectrum (discussion)
Post by: romor on 2012-10-10 18:49:01
Beautiful. Zero resource usage. Nice default colormap. Horizontal B is my choice
Thanks

This definitely solved my UI dilemma and I added one more tab stack to my layout, to hold these great components foobar has
Title: Re: foo_musical_spectrum (discussion)
Post by: ExUser on 2012-10-10 19:15:45
  

Installed.
Title: Re: foo_musical_spectrum (discussion)
Post by: dyermaker on 2012-10-22 16:27:27
great work thanks fismineur
Title: Re: foo_musical_spectrum (discussion)
Post by: Chesteta on 2012-11-21 17:37:23
Wow, I have been wanting this for quite some time now! Thank you for your time and work!

One suggestion/addition - would it be possible to change the legend to terms of 'frequency' as opposed to 'notes'?

EDIT: also, if there is a way to change the number of bars used that would be cool too
Title: Re: foo_musical_spectrum (discussion)
Post by: diypig on 2012-11-23 15:57:10
this is really nice, thanks
Title: Re: foo_musical_spectrum (discussion)
Post by: Buratino on 2012-12-02 18:46:00
Good component.  I wont different orientation (for  several chanals).
(http://i48.fastpic.ru/big/2012/1202/8d/3d411a9ae9e1ea1b0fc48f7f4b28968d.jpg)
Title: Re: foo_musical_spectrum (discussion)
Post by: krazyclocks on 2012-12-02 19:46:54
Having trouble to unzip , tried on two computers.
One says files corrupted other invalid directory.
Using Foobar 1.1.5 Win XP Winzip.

Other components unzip OK.

Can see zipped file in components folder but can not unzip.

Any idea what I could be doing wrong ?

THX
Brian
Title: Re: foo_musical_spectrum (discussion)
Post by: Buratino on 2012-12-03 04:20:08
krazyclocks  for unzip use  7zip
http://www.7-zip.org/ (http://www.7-zip.org/)
Title: Re: foo_musical_spectrum (discussion)
Post by: krazyclocks on 2012-12-03 06:05:53
I tried using 7Zip to unzip folder in components folder.

Will not work as well says file types not supported.

Still stuck... Anymore ideas ?
Title: Re: foo_musical_spectrum (discussion)
Post by: marc2003 on 2012-12-03 11:04:04
you don't need to un-zip. file>preferences>components. drag zip onto window or use the install button to locate it.

the zip works fine from here so if you still have problems, try clearing your browser cache or use another browser.
Title: Re: foo_musical_spectrum (discussion)
Post by: krazyclocks on 2012-12-03 19:29:48
Well , tried several things , explorer and winzip no go...

Firefox and 7zip worked !

No idea why but loaded.

THX
Title: Re: foo_musical_spectrum (discussion)
Post by: ohcandy on 2013-01-02 22:08:40
Good component.  I wont different orientation (for  several chanals).
(http://i48.fastpic.ru/big/2012/1202/8d/3d411a9ae9e1ea1b0fc48f7f4b28968d.jpg)

how could you make it flip like that? in the option i can't find rotate to make it flip like your pic...
Title: Re: foo_musical_spectrum (discussion)
Post by: Buratino on 2013-01-03 11:32:56
ohcandy

It is only illustration my request. I hope it will in new version.
Title: Re: foo_musical_spectrum (discussion)
Post by: AndreaT on 2013-02-06 20:01:44
Hello Fismineur, you component is very nice and quite exactly what I was long looking for.

If possible, in your next release, add also the support of 64k FFT and even 128k FFT.

I know, are very CPU heavy-options, but are useful for time to time very low-freq check that the current best 32k FFT doesn't allow.

Many thanks and kind regards,

Andrea
Title: Re: foo_musical_spectrum (discussion)
Post by: deucalion on 2013-02-13 11:38:00
Thank you for this beautiful component! 
Title: Re: foo_musical_spectrum (discussion)
Post by: trout on 2013-03-15 00:58:40
Thank you, fismineur, for this very useful and well-made component!
Title: Re: foo_musical_spectrum (discussion)
Post by: andrew_berge on 2013-03-15 21:44:03
Wonderful! Thanks a lot for this
Title: Re: foo_musical_spectrum (discussion)
Post by: Bratman on 2013-03-17 01:13:54
Amazing, I too have been waiting for this a long time, kudos!
Title: Re: foo_musical_spectrum (discussion)
Post by: romor on 2013-03-20 05:53:11
I sampled default matplotlib colormaps at 6 and 12 points, and for fun sharing it as musical spectrum import "theme": http://db.tt/RPSyrACS (http://db.tt/RPSyrACS)

LUT:
[a href="http://i.imgur.com/M40yUWJ.png" target="_blank"]
Title: Re: foo_musical_spectrum (discussion)
Post by: EpicForever on 2013-03-21 08:36:23
First thing - thanks for this nice component

I have a feature proposal. One checkbox dropdown list containing two options - "display signal before DSP/dsiplay signal after DSP". This will help watching correct spectrals for diferent channels while using active downmix or upmix DSPs. Currently everything is calculated after DSP chain. For my purposes I need option "before"
Title: Re: foo_musical_spectrum (discussion)
Post by: bulletproof2k on 2013-03-30 15:33:18
Great Thanks!!! 
Title: Re: foo_musical_spectrum (discussion)
Post by: derty2 on 2013-03-30 16:02:15
This is a very nice visualization component . . . thanks a lot ++++++

I noticed the download ZIP only contains a DLL and no readme.txt . . . therefore I took the liberty of creating one myself:
Quote
foo_musical_spectrum  ("Musical Spectrum")

author:     fismineur
version:    0.9.1  (Nov 21 2012)

A foobar2000 component for Default UI & Columns UI.
Displays a visualization of the musical spectrum.


Features ======================================================================

  Adjustable frequency range display - from C0 (16.35 Hz) to A11 (56320 Hz).
  Comprehensive options - colors, styles, processing modes and effects.


Links =========================================================================

  http://www.hydrogenaudio.org/forums/index.php?showtopic=97404


Changelog =====================================================================

 1st release  (Oct 10 2012)

  * foo_musical_spectrum.dll    (MD5: 418c6a7825e6b660ca456ba589658ff0)
  * Only works in Default UI

 Version 0.9.1  (Nov 21 2012)

  * foo_musical_spectrum.dll    (MD5: e26e703f42fd2ebddc33fbf04e422290)
  * Added support for Columns UI.
  * Minor improvements.
Title: Re: foo_musical_spectrum (discussion)
Post by: 8823 on 2013-03-31 03:48:58
Feature request: show notes (A2,A3 etc) as Hz

Thank you!!
Title: Re: foo_musical_spectrum (discussion)
Post by: TroyN on 2013-04-24 02:48:11
Is it possible to have Musical Spectrum displayed within Foobar? instead of having a separate window pop up of spectrum meter ?
Title: Re: foo_musical_spectrum (discussion)
Post by: marc2003 on 2013-04-24 13:02:52
yes. you just need to familiarise yourself with layout editing mode (found under view>layout)

http://wiki.hydrogenaudio.org/index.php?ti...ut_Editing_Mode (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Layout_Editing_Mode)
Title: Re: foo_musical_spectrum (discussion)
Post by: new on 2013-05-01 13:52:26
Feature request: show notes (A2,A3 etc) as Hz
Thank you!!

+1
-----
My foo_musical_spectrum configurations. [attachment=7511:foo_musi...spectrum.zip] To apply unpack this and load Settings-Import... in Spectrum Options foo_musical_spectrum window.
Title: Re: foo_musical_spectrum (discussion)
Post by: Victor Valiant on 2013-05-15 14:52:08
Fismineur You've made my dream come true ;D
I've been wanting this plugin since like '99 lol, back when I used winamp with an spec. analyser
occassionally I've been checking the spectrum along with a chart of key freq, to see which keys it corresponds to (quite insane I know)
Now you've gone and done it m8, those days are gone, thank you  I just can't believe it's free, not even steinberg's cubase can pull this off.
you should definitely patent it or make it your own somehow, it's pretty revolutionary, musicians/producers can see in a few sec. what may take hours to analyse otherwise.

what I really like about this plug:
+ I like the accuracy of the bars during playback, even quite muddy tracks where the key or notes are hard to hear and distinguish, the bars pick it right out in realtime, amazingly accurate!
I played on my keyboard what I saw to verify, it just works. no more painstakingly trying to convert audio to midi ;D
+ The range C0-A11 (16.25hz - 56320hz) is pretty rare to see IMHO and I love that, although I'm interested in C0-E10 (sub till 22khz) for my own projects and productions.
and that insight in sub freq is a blessing to me, the one I was using now only went down to 25-32hz and was not as accurate, and below that can only be felt not really heard but matters nonetheless
But I bet there's folks out there that wil need the extra khz for crazy tests, so don't ever change that range man, it's awesome
+ Fully custom colors, beautiful

-+  the only setback was the very small legend, however the tooltip with key and freq makes up for it on mouse over
and love the spacing between bars option also pretty slick feature.

@8823 and new
hi guys I don't really understand your request, with the tooltip option checked, every bar reveals the key and freq, on mouse over.
maybe you guys already knew this, but if A4=440 then A3 is 220hz and A2=110hz. if you go up A5=880hz.
As every octave up is double the key freq and octave lower is always half the key freq. (if different tuned like A4=432hz then A5=864hz etc tooltip also very nicely displays this)
Isn't the tooltip on mouse over enough for your needs? I've gotten curious what you guys need it especially for?

However I'm with Godrick on
Quote
It would be great if the tooltip could also display the amplitude

It's very handy

@chesteta
the built in foobar spec. analyser lets you choose bars 40, 80, 160 but only goes down to 50hz -25khz and no color customs.
see my pic of my UI below;

Top one small is 160 bars, the bottom one 80bars with legend from 50hz -25khz and middle one from C0-E10 (125bars) with default colors of vertical B for now
I maximized the foobar window to see the keygrid more clearly
did I mention that I'm Analyser crazy ;P The next best thing to listening music is watching it, cheers

(http://img202.imageshack.us/img202/6231/foobarmusicanalyser.jpg) (http://imageshack.us/photo/my-images/202/foobarmusicanalyser.jpg/)







Title: Re: foo_musical_spectrum (discussion)
Post by: Sandrine on 2013-05-15 16:20:43
Feature request: show notes (A2,A3 etc) as Hz  Thank you!!


+1
Title: Re: foo_musical_spectrum (discussion)
Post by: foomark on 2013-05-21 11:46:35
Thank you so much for this beautiful and really useful component, great work!!
I have a question about it, i don't know if i'm missing something or it's just a "lack" of the component itself;
If i use your component on a standalone window (or also in fullscreen mode) i don't have any problem...
but I use a Columns UI skin and i'd like to integrate your Musical Spectrum in a Panel Stack Splitter that includes also other elements.
Now...my problem is the personalization of the Musical Spectrum when it's inside the Panel Stack Splitter i've created.
If I right click on it i just don't get the right menu, but i see the menu to customize the whole Panel Stack :S
Look at the image...
(http://i.imgur.com/ylBAEFZ.jpg)

PS: the other elements inside the same panel stack are working properly, that's why i was wondering if it's a "missing feature" of the musical spectrum.
PPS: i do use the version you posted on this post: http://www.hydrogenaudio.org/forums/index....st&p=814844 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=97404&view=findpost&p=814844)
Am i wrong?
Title: Re: foo_musical_spectrum (discussion)
Post by: marc2003 on 2013-05-21 17:26:57
it's an issue using the panel in forced layout mode in PSS and positioning it inside the script using the $movepanel function.

this doesn't explain why other panels work and some don't but it can be made to work by changing the PSS config. i can't tell you what to edit though as i'm not downloading all the components and that theme to pick it apart.
Title: Re: foo_musical_spectrum (discussion)
Post by: foomark on 2013-05-21 22:05:25
it's an issue using the panel in forced layout mode in PSS and positioning it inside the script using the $movepanel function.

this doesn't explain why other panels work and some don't but it can be made to work by changing the PSS config.


It works, thank you very much! i didn't know about this issue regarding the forced layout option + movepanel, quite strange the fact that some panels are ok (Wave seekbar and your Spectrogram seekbar for example) while other won't show the right click menu properly.
Now that i know it it's ok, cause i can disable the forced layout, make my mods and then re enable the forced layout

i can't tell you what to edit though as i'm not downloading all the components and that theme to pick it apart.

ps: don't worry, i won't ask you so much
Title: Re: foo_musical_spectrum (discussion)
Post by: foomark on 2013-06-07 21:43:44
it's an issue using the panel in forced layout mode in PSS and positioning it inside the script using the $movepanel function.

this doesn't explain why other panels work and some don't but it can be made to work by changing the PSS config. i can't tell you what to edit though as i'm not downloading all the components and that theme to pick it apart.


Firstly...sorry for the OT and I also know no one will ever look at this post and care about what i'm writing but...
i have a workaround for the problem i explained about some elements inside a panel stack splitter in forced mode!

What i thought: is the problem related to the "Forced Layout" option, right? well, let's not check this option directly for the element you want to visualize (for example the Musical Spectrum), but create a Panel Stack Splitter that handle it and check the forced layout on it.
It's a reduntant panel stack splitter (cause it's inside another panel stack splitter and it doesn't have to split anything) but...
It works!
Title: Re: foo_musical_spectrum (discussion)
Post by: k37chup on 2013-06-21 10:19:52
(http://img202.imageshack.us/img202/6231/foobarmusicanalyser.jpg) (http://imageshack.us/photo/my-images/202/foobarmusicanalyser.jpg/)


What plugin did you use to display a track name, time & format/bitrate in 3 top boxes?
Title: Re: foo_musical_spectrum (discussion)
Post by: marc2003 on 2013-06-21 13:49:31
it's probably this: http://www.foobar2000.org/components/view/foo_textdisplay (http://www.foobar2000.org/components/view/foo_textdisplay)
Title: Re: foo_musical_spectrum (discussion)
Post by: k37chup on 2013-06-21 16:26:13
it's probably this: http://www.foobar2000.org/components/view/foo_textdisplay (http://www.foobar2000.org/components/view/foo_textdisplay)


thanks
Title: Re: foo_musical_spectrum (discussion)
Post by: geckolizard on 2013-08-09 03:55:51
Feature request: show notes (A2,A3 etc) as Hz

Thank you!!


Please provide this option. Thanks!
Title: Re: foo_musical_spectrum (discussion)
Post by: Hotsoup on 2013-08-20 17:17:37
Just wanted to say THANKS for this plugin, I love it!!!
Title: Re: foo_musical_spectrum (discussion)
Post by: musikomaniak on 2013-09-12 14:08:29
Thank you for this plugin

If someone know how I could have it at the bottom, I'll be pleased.
(Spectrum analyzer is hidden).

[attachment=7624:musical_spectrum.JPG]
Title: Re: foo_musical_spectrum (discussion)
Post by: xnor on 2013-09-18 21:40:39
You want it below the tab stack? Then move it below the tab stack.
Title: Re: foo_musical_spectrum (discussion)
Post by: musikomaniak on 2013-09-27 19:46:57
Sorry for my late reply.
I changed the configuration and used one panel stack splitter and choosed to put it at top.
It seams ok now
[attachment=7651:myfoo.jpg]
Title: Re: foo_musical_spectrum (discussion)
Post by: Oizo on 2013-10-23 12:36:50
[attachment=7685:2013-10-23_152603.png]
Title: Re: foo_musical_spectrum (discussion)
Post by: foomark on 2013-10-23 19:40:12
[attachment=7685:2013-10-23_152603.png]


Nice grayscale configuration, would you mind export and share the .cfg file? 
Title: Re: foo_musical_spectrum (discussion)
Post by: Oizo on 2013-10-24 15:18:59
Nice grayscale configuration, would you mind export and share the .cfg file? 

 
[attachment=7686:1main.zip]


Title: Re: foo_musical_spectrum (discussion)
Post by: foomark on 2013-10-24 17:04:37
Nice grayscale configuration, would you mind export and share the .cfg file? 

 
[attachment=7686:1main.zip]


Thank you very much! 
Title: Re: foo_musical_spectrum (discussion)
Post by: dgemu12 on 2013-11-18 14:59:46
I guess this is a long shot but is this plugin available for winamp as there is no decent full screen spectrum analyzer only one that uses 1/3 of my screen i.e. the Classic Spectrum Analyzer

http://www.winamp.com/visualization/classi...analyzer/165966 (http://www.winamp.com/visualization/classic-spectrum-analyzer/165966)

I use shpeck on Foobar for visualizations for easier grouping.  Anyway I think your addon is excellent.
Title: Re: foo_musical_spectrum (discussion)
Post by: anaono on 2013-11-25 14:04:10
[Request] New Feature: "A color for each ton of the octave"

Dear fismineur, many thanks for your Musical Spectrum

I ask you for a new feature. I propose to give a different color for each of the 12 notes of the octave. For an example show here:

http://www.planetware.de/colormusic/iColorpiano.html (http://www.planetware.de/colormusic/iColorpiano.html)

(In this example i find it difficult to distinguish the colors for "c#, d and d#" and for "b ans c" and the color for g# is not otimal).
Title: Re: foo_musical_spectrum (discussion)
Post by: Sunrays on 2014-01-13 01:15:16
That looks realy nice! Just great.. Thanks a lot


Title: Re: foo_musical_spectrum (discussion)
Post by: Sunrays on 2014-01-14 15:54:54
Pitty its using lots of CPU, even up to 50%  (goes away when foobar minimized)
Title: Re: foo_musical_spectrum (discussion)
Post by: EpicForever on 2014-02-08 08:44:03
Here is uses simply 0%. Do you use something like intel's GMA450 video card prosthesis on laptop?
Title: Re: foo_musical_spectrum (discussion)
Post by: Philip Goddard on 2014-02-15 11:10:00
I've recently discovered this add-on, and am finding it extremely useful - and my great thanks to the developer. However, I have certain particular requirements that I would like to make known with regard to possible future developments of this program.

I have a little issue in that really I want this program or an equivalent of it as a VST plugin rather than a FB2000 component, because:

(a) I use a graphic EQ to counter a nasty speaker resonance that I get (quite possibly a room resonance rather than the speakers' fault), and that EQ shows on the Musical Spectrum display; if I had the latter as a VST, I could then set the order of the VSTs in FB2000's DSP manager, presumably enabling Musical Spectrum to get the signal prior to its going to the EQ, which is really what I want, for generally I want to see the spectrum of the recording, not of the output from DSPs. At the moment there seems to be no means to arrange things so that Musical Spectrum gets the signal before the VSTs.

(b) If Musical Spectrum were VST, with any luck I could then also use it with WavePad, my preferred editor for most tasks.

I've searched online and have not found an equivalent VST plugin, which is why I mention this here.

Anyway, keep up the excellent work!
Title: Re: foo_musical_spectrum (discussion)
Post by: godrick on 2014-03-18 18:09:29
I generally use this component for its visual effect, but occasionally I try to understand the actual peak values of songs - in such cases, it seems that the peaks shown by this component are about 10 to 15 dB lower than peaks shown by the DUI peakmeter and foo_uie_vis_peakmeter_spectrum (0.2.0.0 beta).  The peaks from the last two elements always agree to the extent I can tell, and disagree with foo_musical_spectrum.  I believe I've set the FFT size/samples per analysis, channels, refresh interval, etc to be the same as foo_uie_vis_peakmeter_spectrum to the extent possible.

Since the DUI peakmeter element and foo_uie_vis_peakmeter_spectrum seem to report the same peak info, it seems there is an issue with my musical spectrum settings or the component itself, and I've done everything I can to eliminate a settings issue.  I don't care about any matching between any specific bar or frequency - I am just trying to compare and understand the peak dB in the audible spectrum across an entire song.  I've inserted an example snapshot of the foo_uie_vis_peakmeter_spectrum and musical spectrum outputs for a sample song showing the issue.

Has anyone else seen this, or are you seeing the same peaks across these visualisations? 

fismineur, thanks again for a great component!
(http://i57.tinypic.com/wt7nk3.jpg)
Title: Re: foo_musical_spectrum (discussion)
Post by: romor on 2014-03-18 19:38:38
I don't care about any matching between any specific bar or frequency - I am just trying to compare and understand the peak dB in the audible spectrum across an entire song.  I've inserted an example snapshot of the foo_uie_vis_peakmeter_spectrum and musical spectrum outputs for a sample song showing the issue.


Godrick, you can't compare apples and oranges to deduce something you don't even seem to care about. Was it even worth posting?
Title: Re: foo_musical_spectrum (discussion)
Post by: godrick on 2014-03-18 20:22:37
I don't understand why the highest overall spectrum peaks don't match between the images I showed, and I think I made it clear it's only these peaks I care about.  I do not care about the peak of any individual bar because I already realize the individual bars will display slightly differently by element.  FWIW, the peaks in Replaygain tags also match what I see in DUI peakmeter and  foo_uie_vis_peakmeter_spectrum but not in musical spectrum.  If I failed to make any of that clear, I apologize.

Do you not see the roughly 10 db difference in the max peak across the two elements in the image I provided? Better yet, if you see the same peaks across all of the three elements I mentioned in your setup, please let me know.
Title: Re: foo_musical_spectrum (discussion)
Post by: romor on 2014-03-18 20:36:34
Godrick, not that just those components use different range scales, but they use different slicing methods to show to us the data that's rendered later as colorbars (and/or peaks).
I'm only questioning your quest, to where?
Title: Re: foo_musical_spectrum (discussion)
Post by: godrick on 2014-03-18 22:03:58
So you're stating that each of the 4 elements (Replaygain track peak, DUI peakmeter, foo_uie_vis_peakmeter_spectrum, musical spectrum) show significantly different overall peak values in a song (regardless of the exact displayed frequency/bar/time in song) in your setup?  That's not what I see in my setup: I see the first three match as far as I can tell.  Please share how all 4 significantly differ in your setup.
Title: Re: foo_musical_spectrum (discussion)
Post by: romor on 2014-03-18 22:12:58
Godrick, I can't see how you compare ReplayGain track peak with momentary value of peakmeter, nor how you compare peakmeter with spectrum, or spectrums from differently set programs (components), and I already stated that I assume that's not going to get you anywhere. But by any means and your firm state, do continue. Who know...
Title: Re: foo_musical_spectrum (discussion)
Post by: godrick on 2014-03-18 22:38:42
You replied with yet another strawman argument.  I could care less about the momentary peak, or the peak for any given bar or frequency at any moment.  I only care about the overall peak across all frequencies and the entire duration for a song.  I've stated that several times several different ways.

I will try one final time for you: I can see the Replaygain track peak occur at some point during a song using the DUI peakmeter and the CUI peakmeter spectrum.  I never see the Replaygain track peak ever occur in the musical spectrum, and the musical spectrum seems to report something typically about 10 dB lower than the other 3 elements.  I believe the held peaks in the image I provided provided a data point consistent with that.

I hope we just have a language barrier issue here.  I don't think you've compared all 4 elements in detail as I have.  I encourage you to do so.
Title: Re: foo_musical_spectrum (discussion)
Post by: romor on 2014-03-18 22:56:44
Thanks you man, I was just trying to assist, but english conversation is indeed my barrier, so maybe I sound to you a bit harsh...

I'll let others tell you what's involved in computing those numbers that you see as bars and how fragile those are to initial parameters, let alone trying to hammer peakmeter that tries to show you the notes and another one ranging the hertz...

Cheers
Title: Re: foo_musical_spectrum (discussion)
Post by: Bob Brines on 2014-03-19 11:57:20
Peak meter integrates the power in all frequencies into a single value. Music spectrum shows the power at each individual frequency. The music spectrum plug-in is working correctly. To demonstrate this, locate a test file with a single frequency, preferably around 1kHz or so. When you play this file, you will see that music spectrum and peak meter display the same value.

Bob
Title: Re: foo_musical_spectrum (discussion)
Post by: kamild1996 on 2014-04-23 19:36:54
For me, the best Foobar2000 component ever made, I can actually watch music
But you know what would be awesome? An option to make the spectrum work as wallpaper!
Is that something possible or rather something to dream of?
Title: Re: foo_musical_spectrum (discussion)
Post by: ashwolters on 2014-05-13 09:30:02
Feature request: show notes (A2,A3 etc) as Hz

Thank you!!


Please provide this option. Thanks!



Yes please....it would be even better with an option for displaying frequency
Title: Re: foo_musical_spectrum (discussion)
Post by: EpicForever on 2014-05-13 16:20:21
When you stop mouse pointer at certain bar it will show you both note and frequency... It is even shown ion first post in this thread.
Title: Re: foo_musical_spectrum (discussion)
Post by: staps on 2014-07-06 12:37:56
Sorry for my English.
This plugin is very useful but has one error.
FFT size must be in seconds rather than in the samples, because changing the sampling frequency of files, analyzer behaves differently.
Useful times are 100, 150, 200, 250, 300 miliseconds.
Title: Re: foo_musical_spectrum (discussion)
Post by: Wander on 2014-07-11 09:27:44
No, I don't think so - directly affecting the frequency resolution is (imho) more important than directly affecting the time resolution.
Title: Re: foo_musical_spectrum (discussion)
Post by: xnor on 2014-07-11 10:33:21
???

It makes sense.

Resolution = Sampling Rate / FFT size

44100/2048 = ~22 Hz
96000/2048 = ~47 Hz

50ms with 44100 Hz would be closer to 2048 (~22 Hz) and with 96000 Hz closer to 4096 (~23 Hz).
The result is more consistent frequency resolution.
Title: Re: foo_musical_spectrum (discussion)
Post by: elmura on 2014-09-26 07:22:41
Just installed. Very nice. Though, like others, wish it would have toggle for Hz instead of musical notes for those of us who don't / can't know music notes.

Yes - you can point at a bar to view its frequency, but when watching music, the note has gone when you point to it.

Quicker and easier to read frequency by having scale showing Hz.

Nice job though
Title: Re: foo_musical_spectrum (discussion)
Post by: johnniewalker39 on 2014-10-14 13:26:45
A visualization component for the default UI.

God bless you man!!

I've been waiting for a PROPER spectrum analyzer for DefaultUI, one that starts below 50Hz. And finally found this. It's customizable, has LOTS of options, i luv it!
It's between F0 - E10, that's roughly 20Hz - 20KHz. And the rest of the settings, i chose what pleased my eye. Interesting you added the tune option, with hint to long debate about Verdi's A vs Goebbles A.... i actually mass down-tuned music before to A=432Hz, just to see what's about those cymatic experiments. Anyway, long story whort, this is my setup, i like to keep it simple:

[attachment=8047:foobar_m...spectrum.png]


(that's under Win7@64Pro btw, listening with Xonar D2X > NAD C325BEE > Magnat Monitor 880 with additional cross-bracing and several tweaks, plenty of breathing space behind them, 26m2 room, 5 basstraps, Supra Cables, an AVR with EMI/RFI Shielding... and so on, all the audiophile stuff )
Title: Re: foo_musical_spectrum (discussion)
Post by: Bob Brines on 2014-10-14 14:04:13
OT: The beauty of A=432, of course, is that "C" become within 3 decimal points of being the binary series. It's just the obsessive/compulsive in me.

Bob
Title: Re: foo_musical_spectrum (discussion)
Post by: For Serious on 2014-12-13 17:40:39
I cannot find anything that even comes close to this visualization. I've tried frequency analyzers and other such things and they're all too restricted or skewed.
Because FB2K still hasn't solved it play count problem I've been thinking of going back to the Windows Medea Player.
With a few plug-ins it's not half bad and I can get the play counts off of my Zen Player.
This visualization though, I just love it! I might just have to stick with FB2K and learn how to make my own Zen syncing plug-in just to be able to keep using it.
Thanks again for this awesome visualization!
Title: Re: foo_musical_spectrum (discussion)
Post by: Oktyabr on 2015-02-11 23:19:35
Hi!  Long time listener, first time caller.

Great plugin!  But I can't figure out how to get the options dialog to come up?  Right clicking on the display itself gives me the options to toggle full screen mode or select the number of bands from a drop down.

fb2k v1.3.3, plugin version is the second one posted on page one, just dropped the zip into components.
Title: Re: foo_musical_spectrum (discussion)
Post by: Oktyabr on 2015-02-12 00:36:39
Hi!  Long time listener, first time caller.

Great plugin!  But I can't figure out how to get the options dialog to come up?  Right clicking on the display itself gives me the options to toggle full screen mode or select the number of bands from a drop down.

fb2k v1.3.3, plugin version is the second one posted on page one, just dropped the zip into components.


Erhmm...  NEVERMIND!  I was using the stock spectrum plugin.  It was the only one I saw.  I unzipped the musical spectrum and dropped the dll in by itself and now I get it, but that failure to see it the first time might just be my eyes
Title: Re: foo_musical_spectrum (discussion)
Post by: TooBossHD on 2015-08-11 20:41:57
A visualization component for the default UI.
(http://i.imgur.com/Ins7Jl.png) (http://imgur.com/Ins7J) (http://i.imgur.com/aCiYqm.png) (http://imgur.com/aCiYq)

how do you install and use it?
Title: Re: foo_musical_spectrum (discussion)
Post by: xnor on 2015-08-11 21:42:55
how do you install and use it?


You download the zip and drag it into foobar's File - Preferences - Components list.

Check out the View menu to display it.
Title: Re: foo_musical_spectrum (discussion)
Post by: juniiflow on 2015-09-13 21:12:05
How exactly do I use this? currently only have one visualizer for columms ui, like is there a way to add it on to a "splitter"
Title: Re: foo_musical_spectrum (discussion)
Post by: marc2003 on 2015-09-14 13:53:38
the link in the first post is for default UI only. if you check post #6, it has a version that works with columns.

https://www.hydrogenaud.io/forums/index.php...st&p=814844 (https://www.hydrogenaud.io/forums/index.php?s=&showtopic=97404&view=findpost&p=814844)
Title: Re: foo_musical_spectrum (discussion)
Post by: juniiflow on 2015-09-14 21:32:26
the link in the first post is for default UI only. if you check post #6, it has a version that works with columns.

https://www.hydrogenaud.io/forums/index.php...st&p=814844 (https://www.hydrogenaud.io/forums/index.php?s=&showtopic=97404&view=findpost&p=814844)

Thanks a lot.
Title: Re: foo_musical_spectrum (discussion)
Post by: Snik4er on 2015-12-02 15:01:27
This plugin is realy great, but is there anyway ti flip the orientation of the bars?
Title: Re: foo_musical_spectrum (discussion)
Post by: Valetos2 on 2016-04-21 00:22:26
That would be even more awesome to have an option of showing freq instead of notes.

Or there's a plugin which shows spectrum in all audible range labeled with actual freqs?
Title: Re: foo_musical_spectrum (discussion)
Post by: Just_Addict on 2016-04-21 19:07:05
That would be even more awesome to have an option of showing freq instead of notes.

Or there's a plugin which shows spectrum in all audible range labeled with actual freqs?
Well, that's the weird part... the default included Spectrum does show frequencies along the bottom, Seems to depend on the number of bars visible... with just 40 bars they always show but go to 80 or 160 and they only show if you've got a wall screen...

PS. if you have tooltips enabled for the Musical one it shows the frequency in the tooltip together with the corresponding note... not the same but at least you can find out which freq goes with which note

EDIT: Argh. completely forgot the default included Spectrum can't be shoved into a panel in Columns UI...
Title: Re: foo_musical_spectrum (discussion)
Post by: jazzthieve on 2016-06-05 14:38:12
This plugin is realy great, but is there anyway ti flip the orientation of the bars?

Was going to ask the same thing but since you didn't get an answer I'm guessing this isn't possible. Was looking for a way to flip it upside down (mirrored).

Edit: Never mind, found it. Yes, I'm blind.
Title: Re: foo_musical_spectrum (discussion)
Post by: awb5150 on 2016-07-09 11:13:39
I would just like to say, what a smokin awesome job,, such a incredibly useful tool for mastering engineers,, why cant the people we pay nearly 1,000 bucks come up with something as useful as this! many thanks  man! keep u the great work! i cant wait to see what you will come up with next..How about some super peak meters! ! just awesome work! Many thanks!
Title: Re: foo_musical_spectrum (discussion)
Post by: MondayMassacre on 2016-11-15 18:50:03
Thank you very much for this useful eyecandy. I love the possibility to adjust the frequency range. I was looking for a Default UI spectrum analyzer that displayed frequencies below 50 Hz for quite a time and now I finally found this little plugin that even looks awesome with default settings. Very happy about that!

I've got one favor to ask though: The frequency is now being displayed in the tooltip; would you please make it possible to show the frequencies at the top / bottom labels? Also, if the number of bars would be adjustable then this plugin would leave no more desired.
Title: Re: foo_musical_spectrum (discussion)
Post by: mstaggerlee on 2017-03-26 18:15:37
Feature Request - in peak hold mode, I'd like to be able to set gravity to a very low value.  The setting appears to be limited to integer values, i. e., it will not accept a decimal point.

I listen to a lot of downloaded audience concert recordings.  I've been experimenting with using the Foobar equalizer along with your spectrum display with peak-hold as a rough tool for spectral sculpting.  (Have you noticed that the eq's  bands are all, effectively, at A & D#?)  I expand the amplitude to 80 dB, & the bandwidth out to D#10 (19.912 kHz - close enuff to 20 for gov't work, amirite?), and I put splitters in the display areas for the spectrum & eq to align A1 with the 55 Hz slider, and A9 (14080 - anybody wanna quibble?) with 14k.  This aligns the eq sliders very nicely with the the spectral display.  I enable peak hold, with a very long hold times (a minute or more!), and have been playing with gravity values.

The scheme would work ideally with a VERY slow peak decay - 1 is quite a bit too fast for this purpose, but 0 will hold the extreme peaks forever, so that's no good either.  I'm trying to tweak the peak decay, via hod & gravity, to work as a sort of an averager.  Not what they're designed for, I know, but I come from an applications engineering background, and finding new ways to use existing tools is sorta what I do.  Anyhow, a fractional setting would be an interesting thing to experiment with.

Just wondering of this is possible - thanks for a really useful tool, in any event.
Title: Re: foo_musical_spectrum (discussion)
Post by: awb5150 on 2017-08-22 23:11:41
Why does my install not want to run musical spec even though I have pasted it into both components and the main folder. anyone have any ideas..
Title: Re: foo_musical_spectrum (discussion)
Post by: Grooves on 2018-04-11 12:07:57
Why does my install not want to run musical spec even though I have pasted it into both components and the main folder. anyone have any ideas..
Same problem here
Title: Re: foo_musical_spectrum (discussion)
Post by: sveakul on 2018-04-12 03:33:59
Did you:

1.  Download zip
2.  Open Foobar, go to File/Preferences/Components, hit the "Install" button, browse to the zip, and hit OK
3.  Then restart Foobar?



Title: Re: foo_musical_spectrum (discussion)
Post by: Bruce-in-Philly on 2018-04-27 20:51:38
Thanx, great spectrum..

Question 1:  I want to display 20to20Khz, the audible band... what are you using for "Notes"?  I have it set to F0 - D#10
Question 2:  Why are the low frequencies show spread across multiple bars?  I have a test disc that plays sine waves... when I play low frequencies such as 20 HZ or 80 HZ, the spectrum should have only one bar displayed, but plays a hump... higher frequencies are no problem with a single bar.
Question 3: Any plans to show Hertz and not notes?

Thanx
Bruce in Philly
Title: Re: foo_musical_spectrum (discussion)
Post by: RenaisanceMan on 2018-05-16 03:36:14
this is frigging awesome!!! Please tell me that there is a matching VU meter and Peak meter?????
Title: Re: foo_musical_spectrum (discussion)
Post by: RenaisanceMan on 2018-05-16 04:39:50
For some reason I dont think I'm seeing the full spectrum analyzer from left to right. I only see A B C1 thru A B C9.
Title: Re: foo_musical_spectrum (discussion)
Post by: EpicForever on 2018-05-21 21:34:40
For some reason I dont think I'm seeing the full spectrum analyzer from left to right. I only see A B C1 thru A B C9.
I think you squeezed component horizontally. Just stretch it and you will see whole spectrum.

Thanx, great spectrum..

Question 1:  I want to display 20to20Khz, the audible band... what are you using for "Notes"?  I have it set to F0 - D#10
Question 2:  Why are the low frequencies show spread across multiple bars?  I have a test disc that plays sine waves... when I play low frequencies such as 20 HZ or 80 HZ, the spectrum should have only one bar displayed, but plays a hump... higher frequencies are no problem with a single bar.
Question 3: Any plans to show Hertz and not notes?

Thanx
Bruce in Philly
1. Here I set C0 - F10, but D#10 should be enough.
2. Sorry, but you just need some education, which is far beyond this subforum. This component by design shows BANDS of frequencies, not just frequencies themselves. These bands are called terces and are fixed "by design" - it is a long story of creation of "equal temperament", which eliminated flaws of ancient (like Greek) musical temperaments. It's something on border of acoustics and music theory.
3. I am not author, but I don't think so. It is "Musical Spectrum", not "Yet Another Spectrograph". Term "Musical" in name suggests that it is all about music - composition and playing on instruments, which involves usage of notes, not frequencies. And those terces and octaves play important role, related to pitch of notes.
Title: Re: foo_musical_spectrum (discussion)
Post by: Vicas on 2018-05-22 21:29:30
Very great plugin, amazing work!
Thanks!
Title: Re: foo_musical_spectrum (discussion)
Post by: Vres on 2018-08-27 12:56:32
Is there not a way to switch from pitches (C0, C1 etc.) to cycles per second (Hz)?
Title: Re: foo_musical_spectrum (discussion)
Post by: EpicForever on 2018-08-27 12:59:07
No and that's why this is "musical spectrum" - spectrum accordingly to how spectrum is divided in music (notes, semitones, etc).
Title: Re: foo_musical_spectrum (discussion)
Post by: Vres on 2018-08-28 09:36:01
Ah, it's pretty useless then, unless you want to hover your cursor on the spectrum all the time, on specific points. There could have been a separate row for Hz for reference, below the note names. Hz is a more important unit for audio engineers.
Title: Re: foo_musical_spectrum (discussion)
Post by: PleasantSounds on 2018-08-28 12:05:12
Two things:
1. If you're referring to professional audio engineers, most of them have at least basic understanding of the musical notation and the ones I know actually prefrer the spectrum division by octaves.
2. You may want to check out the Enhanced Spectrum Analyser (https://hydrogenaud.io/index.php/topic,115911.0.html) component which serves more or less the same purpose but has the scale in Hz.
Title: Re: foo_musical_spectrum (discussion)
Post by: Vres on 2018-08-28 23:58:29
It's not a matter of understanding music notation, since all that means is visual representation of a musical piece; sheet music, harmonies are vertical, melodies and rhythm horizontal. They are intervallic. They don't readily offer you the value of G#/Ab3 in Hertz. There's no way you can know G#/Ab3in hertz unless you have specifically memorized it and most people in this area don't do that. The issue is whether you're willing to calculate the hertz value of i.e some recurring peak, every time in your head, against C5 or whatever. Now, almost none of the tools of i.e a mixing engineer say anything about pitch. An equalizer or a harmonic distortion plugin does not give you bandwidths of notes. You work purely with hertz.
Title: Re: foo_musical_spectrum (discussion)
Post by: EpicForever on 2018-08-29 14:39:48
There is no sense in making arguments. PleasantSound gave you right answers. If you ask for checking narrow peaks, just use Enhanced Spectrum component it is perfect for such purposes. But if you think more about proper tonality/tuning of your own compositions/productions, then notes division from Music Spectrum may be more important to you - it will allow you to easily see if some sounds are aligned to octaves or not. And what is confirmed since long time - properly tuned productions (with sounds aligned) are liked much more than the ones, which use just arbitrary chosen sounds for bass, main instruments, etc. There are many articles about it, especially if we talk about production of electronic/club music. So "notes view" is not useless for sound engineering. And it should never be treated as useless.
Title: Re: foo_musical_spectrum (discussion)
Post by: Victor Valiant on 2018-11-16 16:06:33
Hi all ^^ just checking on here
dropping a quick appreciation for this great tool.
I've been using it for years for all that I play.
This is by far my favorite component in foobar. A great job done!
Can't imagine going without it.

I don't know if the original developer is still around or to be found (fismineur)
But would love to see a dynamics analyser from him. (analyser that plots True Peak minus Short term LUFS in a histogram manner)
I think he'd do a great job.
since this musical analyser is excellent & stands the test of time leaving nothing for me to be desired or improved.
Want to see/support more creations of this guy. cheers
Title: Re: foo_musical_spectrum (discussion)
Post by: refried on 2019-01-04 02:50:05
Beautiful, I love it. Anyway I can get it to look like old-school EQ from a tape deck like so: https://images2.imgbox.com/58/df/P4grRwh8_o.png
Title: Re: foo_musical_spectrum (discussion)
Post by: ChrisMini on 2019-02-01 17:50:00
How do you activate the console? The spectrum is working fine.
Thanks
Title: Re: foo_musical_spectrum (discussion)
Post by: fxg25 on 2019-07-27 21:37:32
The best plugin for me I have ever install.
Le meilleur plugin pour moi
Title: Re: foo_musical_spectrum (discussion)
Post by: Dexter_prog on 2020-03-22 22:32:49
any news on notes being changed to Hz? This is the only reason why I'm NOT using this component
Title: Re: foo_musical_spectrum (discussion)
Post by: billyjk on 2022-01-29 19:19:15
Is there any way to set, or to request development for, displaying the horizontal axis in frequency values, instead of musical notes?

I use this component b/c it displays freqs higher than 20k - the limit for the default spectrum component.  Would be great to have that option!

If there is another component that I should be using instead that provides this capability, please let me know.

Thanks in advance!
Title: Re: foo_musical_spectrum (discussion)
Post by: Jackal29a on 2022-09-07 10:10:24
Is this plugin still in developpment or has it gone dodo? I have been using it for years and I'd be a shame not to have it in FB2.0
Title: Re: foo_musical_spectrum (discussion)
Post by: Majestyk on 2022-09-08 22:33:36
Yeah, it would be nice to have an update. It never did work properly in Darkone. It might have in the original 2013 Darkone but in the later versions it does not scale properly. So I still use the old fashioned Spectrum Analyzer.
Title: Re: foo_musical_spectrum (discussion)
Post by: servimo on 2023-02-26 14:27:48
Is this plugin still in developpment or has it gone dodo? I have been using it for years and I'd be a shame not to have it in FB2.0
Yes, it would be nice if we can have it ported to foobar2000 2.00 and in 64bits too.
Title: Re: foo_musical_spectrum (discussion)
Post by: TF3RDL on 2023-06-10 18:16:23
Is this plugin still in developpment or has it gone dodo? I have been using it for years and I'd be a shame not to have it in FB2.0
Yes, it would be nice if we can have it ported to foobar2000 2.00 and in 64bits too.
Probably not in terms of active development sadly, but at least we have alternatives like audioMotion-analyzer (idk is it possible to make visualizations on JScript/WSH/SMP panels), my sketch (https://editor.p5js.org/jayadiandri/full/CmiIhkILW) (on the web browser), and
ChromaDSP's CQTAnalyzer VST plugin (which needs VST adapter component by Peter Pawlowski) that you can substitute a Musical Spectrum component if you're in 64-bit version of foobar2000 (which I have)
Title: Re: foo_musical_spectrum (discussion)
Post by: Crossover on 2023-06-11 20:25:22
Is this plugin still in developpment or has it gone dodo? I have been using it for years and I'd be a shame not to have it in FB2.0
Yes, it would be nice if we can have it ported to foobar2000 2.00 and in 64bits too.
I'm working on a enhancement for foo_enhanced_spectrum_analyzer (https://hydrogenaud.io/index.php/topic,115912.0.html) that can be used to create a visualization like the musical spectrum component. I hope I can release it soon. Maybe this is something for you. Here's a preview:

Title: Re: foo_musical_spectrum (discussion)
Post by: sveakul on 2023-06-12 00:29:16
Looks great, Crossover!  I would suggest adding a bold font choice for the bottom "X" frequency scale so the numerals aren't hidden by the color bars, and an increased amount of frequency value labels for that scale.
Title: Re: foo_musical_spectrum (discussion)
Post by: Crossover on 2023-06-17 14:27:23
Looks great, Crossover!  I would suggest adding a bold font choice for the bottom "X" frequency scale so the numerals aren't hidden by the color bars, and an increased amount of frequency value labels for that scale.
OK, I added a font selector and a combo box to select the number of values for a label. I hope I can release it soon :-)
(https://i.imgur.com/IBtHmXa.png)
Title: Re: foo_musical_spectrum (discussion)
Post by: TF3RDL on 2023-07-15 21:07:28
-snip-

I'm working on a enhancement for foo_enhanced_spectrum_analyzer (https://hydrogenaud.io/index.php/topic,115912.0.html) that can be used to create a visualization like the musical spectrum component. I hope I can release it soon. Maybe this is something for you. Here's a preview:
Probably yes, but I want 1/24th and 1/48th octave bands, especially on big screens like this:
X
And 1/3rd octave on smaller visualization displays, which audioMotion-analyzer (https://github.com/hvianna/audioMotion-analyzer) (which is a web app, not a foobar2000 component, but you can remake this as 64-bit component) already have.
Title: Re: foo_musical_spectrum (discussion)
Post by: TF3RDL on 2023-08-16 12:57:00
Is it possible to set FFT size to non-power of 2 value like 4410 samples (100ms at 44.1kHz samplerate) as the corresponding wiki page (https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components/Musical_Spectrum_(foo_musical_spectrum)) claims to do so?

BTW, I can't test this since I only have 64-bit version of foobar2000 v2.0 (which means I can't load foo_musical_spectrum anyways) and too lazy to get 32-bit version
Title: Re: Re: foo_musical_spectrum (discussion)
Post by: Bogozo on 2023-08-16 16:38:07
Is it possible to set FFT size to non-power of 2 value like 4410 samples (100ms at 44.1kHz samplerate) as the corresponding wiki page (https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components/Musical_Spectrum_(foo_musical_spectrum)) claims to do so?
Where exactly do you see that wiki page claims that it possible to set FFT size to non-power of 2 value? It doesn't.
Title: Re: foo_musical_spectrum (discussion)
Post by: TF3RDL on 2023-11-08 08:04:37
foo_musical_spectrum is closed-source and the developer @fismineur hasn't been there a long-time ago, so a full-on remake of this component would be necessary for foobar2000 v2.x and 64-bit versions

Of course as of the result of this (further development of foo_musical_spectrum was abandoned), maybe @pqyt could consider a x64 remake of Musical Spectrum (and to the extent, Channel Spectrum panel using my different visualization (https://codepen.io/TF3RDL/pen/NWBYeaE) project as a starting point as always) using my own bandpower-based spectrum analyzer on CodePen as a reference (of course, this project is in JS as usual with CodePen projects, but it could be re-implemented in C++ alongside with foobar2000 SDK) that have all basic features needed for the remake; a logarithmic frequency/octave bands distribution with sinc/Lanczos FFT bin interpolation, note labels (and decades labels in case of someone wanting for a spectrum analyzer with Hz labels), and custom FFT routines (perhaps to support non-power of two FFT sizes)?+
Title: Re: foo_musical_spectrum (discussion)
Post by: pqyt on 2023-11-08 11:04:27
I've been lurking on the side and followed the discussion because I liked the original component too. I already have a working prototype using modern Direct2D in the sense that it has an FFT and displays frequency bands.

However I'm not an audio engineer. While I spent quite some time reading up on FFT's and filter windows before starting I must admit that I don't fully understand the subject yet which makes verifying my work nearly impossible.

F.e. having tried multiple approaches I'm unable to achieve to nice 'Gauss-curve' like distribution of the spectrum. The project has been on pause ever since.
Title: Re: foo_musical_spectrum (discussion)
Post by: TF3RDL on 2023-11-08 11:51:37
I've been lurking on the side and followed the discussion because I liked the original component too. I already have a working prototype using modern Direct2D in the sense that it has an FFT and displays frequency bands.

However I'm not an audio engineer. While I spent quite some time reading up on FFT's and filter windows before starting I must admit that I don't fully understand the subject yet which makes verifying my work nearly impossible.

F.e. having tried multiple approaches I'm unable to achieve to nice 'Gauss-curve' like distribution of the spectrum. The project has been on pause ever since.
Look at the relevant functions on my own spectrum analyzer replicating foo_musical_spectrum[/url] like calcSpectrum() (which generate a spectrum data that has nice gaussian curve-like distribution since it uses Lanczos interpolation where there aren't enough FFT bins for such narrower frequency regions, like low frequencies when using logarithmic frequency scale), lanzcos() (where it does windowed sinc interpolation for nice-looking visualization, even better if you feed a complex-valued FFT output rather than magnitude only ones), and applyWindow() (where you can apply a window function to the PCM signal before FFT, a Hann window should be suffice since it is simple to implement by squaring the cos(x*pi/2) and it has at least decent sidelobe attenuation and reasonably narrow mainlobe width)

Of course, after the calcSpectrum() operation on the complex-valued FFT output (since I know there are differences between these two depending on using complex-valued or magnitude-only FFT output as input data, so that's why I made it toggleable here), the resulting data could be scaled into decibel scale (20*log10(x) on calcSpectrum() output) before drawing bargraph for visualization

BTW, you can use online services that converts JS to C++ but only as a starting point as it is never guaranteed to work within foobar2000 environment at least without modifying the output of these converters


Title: Re: foo_musical_spectrum (discussion)
Post by: pqyt on 2023-11-10 21:55:18
A little preview... Video (https://1drv.ms/f/s!As-wAJ-FHA7qpklUFy6zVzyTxJ13?e=ewEUsf)

With a lot of help and advice from @TF3RDL
Title: Re: foo_musical_spectrum (discussion)
Post by: TF3RDL on 2023-11-10 22:55:46
A little preview... Video (https://1drv.ms/f/s!As-wAJ-FHA7qpklUFy6zVzyTxJ13?e=ewEUsf)

With a lot of help and advice from @TF3RDL
Glad that I'm getting closer to finally getting a 64-bit remake of Musical Spectrum, without help from me, the foo_musical_spectrum x64 remake would take it too long. BTW, I wished that you're not doing a direct port from JS on my audio spectrum project (https://codepen.io/TF3RDL/pen/poQJwRW) to C++ (w/ fb2k SDK) and instead remade it from scratch using this aformentioned project as a reference point, but that's fine (sometimes it works so well that it doesn't need a remake from scratch anyway) in the end

Oh, here's the Desmos graph (https://www.desmos.com/calculator/shffo9woel) that anyone should understand why Lanczos interpolation on FFT is different (magnitude-only vs. complex-valued FFT output) by playing around with the parameter "b" (the frequency of the tone) and functions especially "f(x)" and "g(x)" (real and imaginary FFT parts) and "k(x)" (magnitude FFT part) on this graph, and on the aforementioned CodePen project, you can toggle "Use complex FFT coefficients as interpolation data" (easier to see the differences with "Freeze analyzer" on, which basically freezes the audio input data just like it does on foobar2000 visualizations when pausing a song) on and off
Title: Re: foo_musical_spectrum (discussion)
Post by: pqyt on 2023-11-11 05:35:37
A little preview... Video (https://1drv.ms/f/s!As-wAJ-FHA7qpklUFy6zVzyTxJ13?e=ewEUsf)

With a lot of help and advice from @TF3RDL
Glad that I'm getting closer to finally getting a 64-bit remake of Musical Spectrum, without help from me, the foo_musical_spectrum x64 remake would take it too long. BTW, I wished that you're not doing a direct port from JS on my audio spectrum project (https://codepen.io/TF3RDL/pen/poQJwRW) to C++ (w/ fb2k SDK) and instead remade it from scratch using this aformentioned project as a reference point, but that's fine (sometimes it works so well that it doesn't need a remake from scratch anyway) in the end

I wanted to get a head start and also something that would be easy to verify against your work. I already found a couple of things I want to optimize once I understand the algorithms better. But the audio engineering part I will have to 'steal' from someone else.
Title: Re: foo_musical_spectrum (discussion)
Post by: TF3RDL on 2023-11-11 09:03:01
I wanted to get a head start and also something that would be easy to verify against your work. I already found a couple of things I want to optimize once I understand the algorithms better. But the audio engineering part I will have to 'steal' from someone else.
Understandable, any JS projects like the perceptual graphic equalizer (https://codepen.io/TF3RDL/pen/VwGLNYW) and the sliding DFT algorithms (https://codepen.io/TF3RDL/pen/XWyRBoo) that are audioenginnering-related would be directly ported into C++ for use in fb2k by @pqyt unless otherwise stated
Title: Re: foo_musical_spectrum (discussion)
Post by: pqyt on 2023-11-11 22:20:30
Some progress... Video (https://1drv.ms/f/s!As-wAJ-FHA7qpklUFy6zVzyTxJ13?e=IGRLtq)
Title: Re: foo_musical_spectrum (discussion)
Post by: TF3RDL on 2023-11-12 01:08:39
Some progress... Video (https://1drv.ms/f/s!As-wAJ-FHA7qpklUFy6zVzyTxJ13?e=IGRLtq)
Yeah, hopefully this spectrum visualization will come into foobar2000 64-bit and have new features like adjustable number of bands per-octave (like 1/24th octave bands and 1/3rd octave bands), linear/sqrt amplitude scaling, frequency labels other than musical notes, non-power of 2 FFT sizes (required for setting FFT size in milliseconds instead of samples) that original foo_musical_spectrum don't

Also, the @pqyt remake of Musical Spectrum (with help from me, of course because you're not an audio engineer at all) for fb2k v2 is definitely the first step in the right direction of making these concept components like FFT Analyzer (foo_fft_analyzer) (https://fanon.fandom.com/wiki/FFT_Analyzer) into a reality, so I would appreciate you for doing that and I would looking forward for that like recreating Channel Spectrum panel for fb2k x64 and making the Mid/Side mode for metering components for foobar2000 a reality, etc.
Title: Re: foo_musical_spectrum (discussion)
Post by: sl23 on 2023-11-17 21:46:34
Looks great, Crossover!  I would suggest adding a bold font choice for the bottom "X" frequency scale so the numerals aren't hidden by the color bars, and an increased amount of frequency value labels for that scale.
OK, I added a font selector and a combo box to select the number of values for a label. I hope I can release it soon :-)
(https://i.imgur.com/IBtHmXa.png)
I for one would be happy to pay for this!
It would be so useful to me.
I don't suppose you're able to convert it into A VST or CLAP plugin for use in a DAW?
Title: Re: foo_musical_spectrum (discussion)
Post by: Neccros on 2024-02-04 19:01:19
Cant wait for this to get updated to 64bit... Its one of 2 components I love that are still 32bit only... :(