From: Tribhuwan on 7 Jul 2010 02:04 I want to extract the least significant bit of each sample of the audio for processing .The audio file is a wav file & when Iam using wavread I am getting the values in decimal.I have tried using de2bi function but its giving the error as it can be applied only real positive values. I then shifted & scaled each samples to the +ve quadrant but still problem is the same .It is requested therfore the solution for this.Expecting the solution from you Thanx in anticipation
From: Steve Amphlett on 7 Jul 2010 05:48 "Tribhuwan " <sonug_tt(a)yahoo.co.in> wrote in message <i115d8$d3k$1(a)fred.mathworks.com>... > I want to extract the least significant bit of each sample of the audio for processing .The audio file is a wav file & when Iam using wavread I am getting the values in decimal.I have tried using de2bi function but its giving the error as it can be applied only real positive values. I then shifted & scaled each samples to the +ve quadrant but still problem is the same .It is requested therfore the solution for this.Expecting the solution from you Thanx in anticipation For a 16-bit (mono) WAV file, this is how to extract the LSB. x=wavread('mono.wav'); lsb=bitand(x*32768+32768,1); We use it for embedding a crankshaft once/rev signal into our synthesized engine noise files so that engine speed can be extracted. Others encode all sorts in the (inaudible) LSB of a 16-bit file.
|
Pages: 1 Prev: Weighted least square fr signal reconstruction Next: Draw a tangent on a image |