[PD] Re: size of loaded audio to array
Jer Welter
mrjester at fledge.watson.org
Mon Apr 12 21:57:49 CEST 2004
> > For your wav file: Don't forget that a 16 bit file will be blown up to
> > double size (32 bits) and will then take up 304 MB. It depends on
> > your RAM size if that can be handled.
>
> It would seem that the file takes up twice as much room even when only
> one track is being used? The story gets stranger and stranger!
Nothing strange here. All numbers in PD (signal or float) are represented
in 32-bit floating point. So when you read data from a CD-quality
soundfile (which is 16-bit integer) into memory, it is converted to 32-bit
FP, and thus takes up twice as much space in RAM as on disk. If you were
using, e.g., a 24-bit soundfile, it would only use 1.333... times as much
space.
Jer
More information about the Pd-list
mailing list