Samples Altered or am I going crazy
Posted: Mon Mar 14, 2011 2:22 am
I have been using Audacity 1.3.12 on and off for about a year now mainly to only view files. Lately I expanded its use and noticed that after cutting chunks out from other files that the saved samples differed from the originals, although being displayed graphically as roughly the same but not identical.
Actually that's what triggered my quest because of the slight graphical difference, I then discovered that the samples were in fact considerably altered in the sense that no numerical matching could be done.
So I decided to simplify and loaded some samples, then immediately selected the whole set and exported the selection. Indeed the sample numerical values were entirely altered such that a binary search in the "copy" could not find a sequence of 16 bytes in the original in the copy.
To my mind this is tantamount to a bug although I think its due to Audacity's penchant for working with floating point samples i.e. the conversion between normal 2's complement wav samples. I would think that such a conversion should not produce such radically changed sample values, but I tried it with a couple of other randomly selected 16byte sequences and they all failed. Obviously the smaller you make the sequence the more chance you would have of a false match.
I don't know this is very shocking to me... can anyone throw some light on this because it means that editing with Audacity will alter your samples without cause. Pretty horrific.
P.S. for finding the bytes I used both XVI32 and HxD
Actually that's what triggered my quest because of the slight graphical difference, I then discovered that the samples were in fact considerably altered in the sense that no numerical matching could be done.
So I decided to simplify and loaded some samples, then immediately selected the whole set and exported the selection. Indeed the sample numerical values were entirely altered such that a binary search in the "copy" could not find a sequence of 16 bytes in the original in the copy.
To my mind this is tantamount to a bug although I think its due to Audacity's penchant for working with floating point samples i.e. the conversion between normal 2's complement wav samples. I would think that such a conversion should not produce such radically changed sample values, but I tried it with a couple of other randomly selected 16byte sequences and they all failed. Obviously the smaller you make the sequence the more chance you would have of a false match.
I don't know this is very shocking to me... can anyone throw some light on this because it means that editing with Audacity will alter your samples without cause. Pretty horrific.
P.S. for finding the bytes I used both XVI32 and HxD