Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 05-07-2004, 03:21 AM   #1
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, 06:36 AM   #2
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 -


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:55 PM
no sound playing mp3 with xmms The Karl Linux - Software 8 09-29-2004 04:43 PM
xmms spectrum analyser question edM Slackware 0 03-25-2004 07:28 PM
XMMS is playing but no sound is produced Spasmolytic Linux - Hardware 6 03-08-2004 10:07 AM
XMMS Open GL Spectrum analyzer not working... Bensoft Kill MS Linux - Software 0 11-21-2003 04:04 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:50 AM.

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