Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 19th, 2005, 6:27 PM   #1
MadCow
Newbie
 
Join Date: Jun 2005
Posts: 8
Rep Power: 0 MadCow is on a distinguished road
Sound

Hello,

I am wanting to know how to make a graph which shows the volumes of frequencies of a sound (like the bar visualization in Windows Media Player). I have no idea where to start, so I need help. (I know DirectX and c++ quite well if they will help me). The difficultly I am having is I don't know how to determine the frequencies of a sound, making the graph is easy once I know that.

Thank you.
MadCow is offline   Reply With Quote
Old Sep 19th, 2005, 6:35 PM   #2
Klarre
Game engine designer
 
Klarre's Avatar
 
Join Date: May 2005
Location: Sweden
Posts: 314
Rep Power: 4 Klarre is on a distinguished road
You should check out fmod (http://www.fmod.org/). I am not really sure, but I think you can get frequences out of your sound using this library. Worth a check anyway. Great lib!
Klarre is offline   Reply With Quote
Old Sep 19th, 2005, 7:03 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You may be seeing just instantaneous peak representations versus time in WMP, not the same thing as magnitude of the various frequencies present. I'm not familiar with the library Klarre referenced, but if it has FFT capabilities, it'd definitely do the job.

EDIT: Hey, Klarre, I tried to follow that link and got a 404.

EDIT II: Never mind, it was the close parenthesis, lol, got there.

EDIT III: Great link, Klarre, thanks, and it does offer spectrum analysis.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Sep 19th, 2005, 7:57 PM   #4
MadCow
Newbie
 
Join Date: Jun 2005
Posts: 8
Rep Power: 0 MadCow is on a distinguished road
Thanks alot, this looks great.
Quote:
You may be seeing just instantaneous peak representations versus time in WMP, not the same thing as magnitude of the various frequencies present.
Hmm...good point
MadCow is offline   Reply With Quote
Old Sep 19th, 2005, 8:24 PM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Here's an FFT analysis of a C&W song. Not nearly as sexy as a lissajous pattern or an envelope amplitude varying over time. Much more useful, though. Quite a lot of the high-end clarity of the guitars got lost in the rolloff. The program that produced this is a tool, not something I've looked at hooking into.
Attached Images
File Type: jpg FFTanalysis.jpg (17.0 KB, 28 views)
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:56 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC