Thank you for the answer
i would love trying audiolab but i got this error while importing i m
running python2.6

>>> import audiolab
/usr/local/lib/python2.6/dist-packages/audiolab-0.0.0-py2.6-linux-i686.egg/audiolab/soundio/play.py:48:
UserWarning: Could not import alsa backend; most probably, you did not have
alsa headers when building audiolab
>>> import scikits.audiolab
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "scikits/audiolab/__init__.py", line 25, in <module>
    from pysndfile import formatinfo, sndfile
  File "scikits/audiolab/pysndfile/__init__.py", line 1, in <module>
    from _sndfile import Sndfile, Format, available_file_formats,
available_encodings
*ImportError: No module named _sndfile*

Thank you

AdeC


2010/5/27 David Cournapeau <courn...@gmail.com>

> On Thu, May 27, 2010 at 8:00 PM, arthur de conihout
> <arthurdeconih...@gmail.com> wrote:
>
> > #i dont really understand the %dh and the s/2.0**15 but it might be my
> > problem
> >  original = [s / 2.0**15 for s in original]
>
> This is done because wav file are (usually, not always) in fixed
> point, with values in the unsigned  16 bits int range (~ [-32768,
> 32768]), but when you want to do processing in floating point (as does
> numpy), you want the values normalized (in the [-1, 1] range). 2 * 15
> gives you the normalization factor. But audiolab does this for you
> automatically,
>
> David
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to