calulation of amplitude on each sample number in Audio reading ???
arun singhal
Ranch Hand
Joined: Oct 25, 2009
Posts: 41
posted
0
I have a trouble in reading a wav file. Actually i have to read a file and then calculate amplitude in each sampling in an array. Is there any function to calculate amplitude ?
arun singhal
Ranch Hand
Joined: Oct 25, 2009
Posts: 41
posted
0
I have to make a graph that compares the amplitude and sample number of a music file. I can use AudioInputStream, AudioFormat, and SourceDataLine to get the total number of samples and all that stuff, and I can get a byte array representation of the file, but I don't know how to go through each sample frame and get the amplitude for each of them. Can someone please help???
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32599
4
posted
0
Too difficult a question for "beginning Java". Moving thread.
arun singhal
Ranch Hand
Joined: Oct 25, 2009
Posts: 41
posted
0
Then please give me any link of forum for solution of this type of problem .....
So that can get out of this type of problem...
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
This may help if you're using javax.sound.sampled, and this example uses JMF to access individual audio samples.