![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 8
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 314
Rep Power: 4
![]() |
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!
|
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#4 | |
|
Newbie
Join Date: Jun 2005
Posts: 8
Rep Power: 0
![]() |
Thanks alot, this looks great.
Quote:
|
|
|
|
|
|
|
#5 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|