From: BhupathiRao on
hai everyone;

I am reading 'time001.wav' sound file by using wavread function. But it gives the amplitude values between [-1 to +1]. How can i read amplitude values more than the [-1 to +1].
From: Rune Allnor on
On 24 apr, 11:03, "BhupathiRao " <bhupathi_lakin...(a)yahoo.com> wrote:
> hai everyone;
>
>  I am reading 'time001.wav' sound file by using wavread function. But it gives the amplitude values between [-1 to +1]. How can i read amplitude values more than the [-1 to +1].

As I understand it, the contents of the .wav file is normalized
to the [-1,1] interval. If correct, it means that you can not read
values outside that interval.

Rune
From: Wayne King on
"BhupathiRao " <bhupathi_lakinana(a)yahoo.com> wrote in message <hquc48$eog$1(a)fred.mathworks.com>...
> hai everyone;
>
> I am reading 'time001.wav' sound file by using wavread function. But it gives the amplitude values between [-1 to +1]. How can i read amplitude values more than the [-1 to +1].

Hi, if the data are represented by 32 bits or less in the wave file and you read the file with the default 'double' format, the data range is always [-1,1]. If you read the data as 'native' you will get a range depending on the number of bits.

At any rate, I think you will have to scale the result in Matlab to get a signal with values outside of [-1,1].

If you created the file by sampling audio and you know the voltage input range at the A/D converter, say [-5,5] volts. Then you can read the file using 'native' and use the quantization step to convert the values to volts in the Matlab command window.

Wayne