|
-
May 12th, 2000, 01:32 PM
#1
Thread Starter
Fanatic Member
-
May 12th, 2000, 04:18 PM
#2
transcendental analytic
[email protected] - For mail -checks every day
[email protected] - For sending files - checks only when someone told me to send me something
One thing before you send, is this the same thing that i tried out in this thread: http://forums.vb-world.net/showthrea...threadid=14668
If so then I've seen it's updating resolution to be too bad to create a spectrum analyzer from it. On the other hand you can create a simple VA meter.´If you have your amplitude updated at 44100 times a second then i will gladly have a look at your code
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 12th, 2000, 05:41 PM
#3
Thread Starter
Fanatic Member
Yes it's the same code and the amplitude is updated 1000 times a second using a timer control of interval 1mS. Is there any other way to make the sampling rate 44100 Hz.
Can you plaese help me?
Kinjal
-
May 12th, 2000, 06:19 PM
#4
transcendental analytic
My testings reveals that the amplitude updates about 20 times a second, even if i get the amplitude each 10 µs. I'm sorry but there's no way of making a spectrum analyzer out of that.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
May 13th, 2000, 01:02 AM
#5
Thread Starter
Fanatic Member
Oh no 
My entire work wasted! I spent hours searching data and tutorials on Fourier series and tried to make my spectrum analyzer look like Jet Audio or MS Media Players Bar visualisation.
But I failed.......................
-
May 13th, 2000, 06:13 PM
#6
Frenzied Member
Hmm, I havn't seen much of the code but I think there could be a way around the problem however it will take up most, if not all of your cpu time while it's running.
You need a very small program that runs as a module (set the startup object to sub main) this code then sets it's thread priority to high and goes into a continuous loop constantly checking the audio level and using sendmessage callback the callback function terminates the program if it recieves a Quit message, you can use waitforsingleobject tocause the thread to pause while it's not checking and free up resorces.
the calling program (the one that displays everything) uses the shell comand to start the small program (passing in it's hwnd as a command line) and subclasses itself to recieve the messages, then it can just return 1 to keep the program going and 0 to stop it. you'll probably want a form with an end button and a doevents line in the loop for the small program so you can end it manually, but you should get rid of this when you're sure it's gonna work and that's when you'll see the speed increce.
This is quite a techy way of doing it, it's not something I'd find easy but I'll give you some pointers along the way if you need them.
Hope this helps.
-
May 13th, 2000, 06:25 PM
#7
transcendental analytic
-
May 13th, 2000, 08:11 PM
#8
Fanatic Member
I've not seen anything of the source but if you can show it to me I'd love to help, if there is is one thing I can do well it's performance algorithms.
Although from what I hear, in a sample rate of 44100 using a timer control would be a mistake, you should be able to time a mod function in there to break out to the graph when you need to.
[email protected]
let me know if you can send me the project.
Cheers
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
May 13th, 2000, 08:13 PM
#9
Thread Starter
Fanatic Member
I have one spectrum analyzer code which I downloades from http://www.fullspectrum.com/deeth .It uses picturebox to display vertical bars. The resolution and smoothness are good but I wnat the same thing with my code which loads bitmaps from a picture clip controldepending on the sound amplitude. I tried making it with the deeth spectrum code but my system hangs with the modified code.
Also one thoing I noticed about that even at design time we can not move the position of any of the controls. I don't know how the programmer has done this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|