I am doing a project which requires signal processing of the audio when a wave file is provided to me. I know how to compute the amplitude using sample value of a channel using the formula
20*log(Sample Value/Maximum attainable sample Value)
But what to Do If I have lets say 6 channels,what would I need to do with Sample values of every channel to get the amplitude for plotting the waveform.I am reading the wave file with
AudioInputStream
which probably gives me the sample values in frames as
[1|2|3|4|5|6],[1|2|3|4|5|6],[3rd Frame] and so on...
where each sample is an 8 or 16 bit value.