Вопрос

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.

Это было полезно?

Решение

I got the answer: Since channels are meant for multiple speaker systems,the audio which we receive may be affected by constructive or destructive interference of signals coming from other speakers.So it is essential to convert each channel to a waveform and then adding up the spectra of channels to obtain a spectrum,now using this spectrum I'll have to make a waveform which will provide me with correct value of the audio signals amplitude at an instantaneous time.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top