[Numpy-discussion] 24bit arrays

Simon Burton simon at arrowtheory.com
Mon May 29 05:17:01 EDT 2006


On Mon, 29 May 2006 14:00:34 +0200
"Maxim Krikun" <maxim.krikun at gmail.com> wrote:

> 
> The typical 24bit audio file contains two interleaved channels, i.e.
> frames of 3bytes+3bytes, so it can be cast to (nframes,3) Int32, or
> (nframes,2,3) Int8 array, but this is hardly a useful representation for
> audio data.

Why not ? It's good for slicing and dicing, anything else and
you should convert it to float before operating on it.

Simon.

-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 




More information about the NumPy-Discussion mailing list