[PD] Exact RAM size of arrays
ch at chnry.net
Fri Oct 7 13:03:34 CEST 2016
Le 07/10/2016 à 12:31, Martin Hiendl a écrit :
> Dear list,
> I have a quick question: For a looper/ringbuffer patch I'm using a
> couple of hundred arrays with a size of something between 4-7 seconds
> (at 44.1k) each.
> How can I calculate exactly how much RAM one buffer occupies, so that
> I'm not overloading my machine? Is it the same size of a wav file?
yes, an array use the same mem as a 32 bit mono wave file. (or a 16 bit stereo wave file, like in CD)
1 sample is 4 bytes, there is 44.1 samples/s, so a table use 176.3 Ko / second
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
More information about the Pd-list