View Full Version : spectrum analyser
5th April 2002, 13:35
ok, I'll try to do simpler... Could anybody tell me how to get the current values from each bar in the spectrum analyser - or the value of each associated frequency - using the api? I'm trying to develop a plug-in that uses bpm calculations, and I need frequency information for that..
5th April 2002, 23:02
/me doesnt think it's that easy......
I'd be more willing to bet they go through the data and build the thing themselves, therefore there would be no api calls, but hey, I could be wrong
8th April 2002, 09:09
I was trying to find that info out myself .. and logically it would probably be possible. Because that information is used by the plugins I bet they do call an ID for that reason .. I could be wrong, hopefully I'm not. If I am there is another way because I have seen stand-alone screen-savers that can access the information needed to display a spectrum analyzer.
Hope this gives you hope .. and hopefully this knowledge will become known to us.
Winamp supplies values representing the strenth of frequency bands (calculated with FFT); the only problem is that none of the original Winamp-coders seems to take the time to check these forums as people have been asking for this info for ages.
The person that has coded the original FFT should be able to tell us what frequency-bands the values correspond to, but apparantly they are too lazy :(
The only way to find out is to create some test-files with preset frequencies and see what the output is.
That's not very accurate though...
Best option is to write your own fft and process the data yourself;
but then the problem vor vis-plugs is that the data they get isn't accurate at all (8 bit samples..)
So developers move over to other players with better support, or write their own :)
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.