Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other JSE/JEE APIs and the fly likes how to extract the amplitude in the Java Sound API? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "how to extract the amplitude in the Java Sound API?" Watch "how to extract the amplitude in the Java Sound API?" New topic
Author

how to extract the amplitude in the Java Sound API?

Mahmoud Hadad
Ranch Hand

Joined: Jan 09, 2006
Posts: 67
anyone knows how can i extract the amplitude from each sample in the Java Sound API to plot them in a diagram that shows (amplitude over frequency) either from Clip ,SourceDataLine or TargetDataLine objects.
thanks.
Mahmoud Hadad
Ranch Hand

Joined: Jan 09, 2006
Posts: 67
sorry the diagram will show the amplitude over time for each impulse
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

"Mahmoud Hadad_2009",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mahmoud Hadad
Ranch Hand

Joined: Jan 09, 2006
Posts: 67
this is the second time to get a warning on this subject,the first one when my display name was mahmoud_hadad_java i think and i changed it then i got this second warning after many months.my real name is Mahmoud Hadad (a fictious one).
Regards,
Mahmoud Hadad
Mahmoud Hadad
Ranch Hand

Joined: Jan 09, 2006
Posts: 67
sorry i meant not fictious.anyway guys does anyone knows how to get the amplitude and the frequency for each impulse for an audio file in the Java Sound API?
i would be gratefull if someone can tell me.
thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to extract the amplitude in the Java Sound API?