Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

programming with sound

Thread view: 
pooravc@hotmail.com - 09 Mar 2006 08:07 GMT
Hello,

I am looking for some material on programming with sound. Specifically,
I want to be able to compare different sounds. I want to start with
developing something like a guitar tuner. So I need to compare 2
pitches. I looked at the API for java sound, and I don't think that
will do the job. Can someone point me in the right direction where I
can start doing some digging?

Thank you very much
lewmania942@yahoo.fr - 09 Mar 2006 12:03 GMT
> Specifically,
> I want to be able to compare different sounds. I want to start with
> developing something like a guitar tuner. So I need to compare 2
> pitches.

Hi there,

if I'm understanding you correctly, you need to determine
the frequency of a given sound, then check if that frequency
is  correct.

To extract the frequency from a given sound, you can
use a "Fast Fourier Transform", usually referred to
as FFT. Depending on the source of the sound you may
need additional filters/checks/etc. to be sure to extract the
main frequency and not some harmonics.

The FFT algorithm isn't very complicated to implement
and  you can find some Java implementation using Google.

Hope it helps,
Roedy Green - 09 Mar 2006 17:58 GMT
On 9 Mar 2006 04:03:48 -0800, "lewmania942@yahoo.fr"
<lewmania942@yahoo.fr> wrote, quoted or indirectly quoted someone who
said :

>The FFT algorithm isn't very complicated to implement
>and  you can find some Java implementation using Google.

Intel has a library of FFTs they are promoting. See
http://mindprod.com/jgloss/fft.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.