[PD] fast way to convert two 8 bit data to one 16 bit data in big lists ?
ch at chnry.net
Fri Sep 25 09:36:00 CEST 2020
if you don't mind using eternals, you can put all data in a table, then use tab_downsample from nusmuk_utils to create 2 tables with MSB and LSB, then the iem_tab library will provide the other mathematical object to multiply 1st table by 256 and add the other one.
It should perform very efficiently.
Le 25/09/2020 à 00:30, Benjamin ~ b01 a écrit :
> I'm looking for a fast way to convert two 8 bit data to one 16 bit data
> in big lists
> a device send continuously packets of 16 000 bytes threw the network to
> at the moment, to reconstitute from two bytes a 16 bit value, I'm using
> a list-drip and a counter to discriminate the MSB and LSB and do the
> *256 and + operation
> the aim is to feed a table with the result (see attached) and produce
> sound from it
> it works with packets of 2 000 bytes but pd freeze with bigger packets
> I'm wondering if there is a better way to achieve this ?
> 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