achabotl / pambox

Python auditory modeling toolbox.
http://pambox.org
BSD 3-Clause "New" or "Revised" License
35 stars 8 forks source link

Signals loaded with `utils.read_wav_as_float` are 180 deg out of phase #30

Closed achabotl closed 9 years ago

achabotl commented 9 years ago

It happens in the conversion to float, if the signal is integers. The signal is divided by the largest value possible, which is pretty much always -2^(Nbits - 1). The signal should be divided by the absolute value.