LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-07-2004, 02:21 AM   #1
dipumurti
LQ Newbie
 
Registered: May 2004
Location: UK
Posts: 1

Rep: Reputation: 0
how can i create a simple frequency spectrum from a sound playing like in XMMS


i'm doing a project in "computer controlled musical water fountain".
i have to create a player, play a song in it and read the instantaneous frequency of the song in the buffer in brief intervals of time. i used Java Media Framework (JMF) and also tried DirectX's DirectSound.getFrequency() method but both of them, as far as i know, only gave the frequency in samples per second.

what i really need is those sample values so that i can collect those values for brief interval of time, find out average and send the dominating frequency for that interval to electrical team who will activate the corresponding motors to create various patterns of the fountain.
As i think, this phenomenon is similar to the real-time frequency spectrum displayed in XMMS audio player in Linux where the instantaneous sampling values are captured and correspondingly displayed.

any kind of help will be highly appreciated !
 
Old 05-07-2004, 05:36 AM   #2
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
You need to read up on spectrum analysis and fourier transforms
Here is a good place to start -
http://chandrakantha.com/articles/sp.../spectrum.html
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't disable XMMS opengl spectrum analyzer plugin undeaf Linux - Newbie 4 05-25-2005 04:55 PM
no sound playing mp3 with xmms The Karl Linux - Software 8 09-29-2004 03:43 PM
xmms spectrum analyser question edM Slackware 0 03-25-2004 06:28 PM
XMMS is playing but no sound is produced Spasmolytic Linux - Hardware 6 03-08-2004 09:07 AM
XMMS Open GL Spectrum analyzer not working... Bensoft Kill MS Linux - Software 0 11-21-2003 03:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration