Please exuse my ignorance here but, I believe the above function would help me build some type of graphical display for sound, such as some bars flahsing and whatnot. Am I wrong? If not do I need to implement some type of filters to do so? If not how can this be done and if so where can i get some materials or resrouces and finding some filters.
Thanks in advance.
This function can be used to give the user an idea of wether a channel is playing or not
It’s not a very accurate VU-meter, but it’ll do the job. Just draw a bar with a height depending on what this function returns (between 0 and 1).
To smoothen the display out and make it more realistic, you should make your VU drop slower than the GetCurrentVU does.
Here’s a small example of what you could do :
TempVU = GetCurrentVU(MyChan);
if (TempVU > MyVU)
MyVU = TempVU;
MyVU = MyVU – (MyVU – TempVU) / 5;
Changing the 5 depending on the speed you refresh your display will make it drop smoother.
I don’t know if there’s a real rule to get a realistic display, but this does the job.
I got this part, i just can’t understand how to make multiple bars, for example if u look at a stero or some of the good mp3 players out there they have a nice graphical eq of like 10 or 20 bars, it is this that i’am tring to duplicate, i’am pretty sure irequires some type of filtering but i’ve no idea if i’am targeted in the right direction or not.
I’ve been searching for a decent example of how to do this type of meter based on the sound outgoing for awhile but alas it eludes me.
All help is greatly appreciated.
I have tried to accomplish a spectrum analyser using the fftw library for doing fft. You will at least need to make your own streaming dsp callback, do some buffering, and I think for good results you have to do some kind of oversampling, but I haven’t found out how to do that yet…
If I once finish a decent spectrum analyser, I’ll add the dll to my vb sample, so everyone can easily use it.
If someone can help out, please do…
Please login first to submit.