hi, 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 udpreceive 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 ?
thk b
#N canvas 6 56 970 798 10; #X obj 182 117 list-drip; #X obj 156 344 t f b; #X obj 237 374 f; #X obj 267 374 + 1; #X obj 222 170 f; #X obj 252 170 + 1; #X obj 234 151 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 282 171 % 2; #X obj 155 236 spigot; #X obj 202 238 spigot; #X obj 183 143 t f f b; #X obj 222 192 t f f; #X obj 249 215 invert; #X obj 202 259 * 256; #X obj 155 279 +; #X msg 182 80 0 255 0 255 255 0 255 0 255 12 55 48 255 255 255 0 5 1 255 214; #X obj 294 375 % 20; #N canvas 0 50 450 250 (subpatch) 0; #X array data 100 float 3; #A 0 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2 35357.2; #X coords 0 0 100 66000 200 140 1 0 0; #X restore 363 280 graph; #X obj 156 402 tabwrite data; #X connect 0 0 10 0; #X connect 1 0 18 0; #X connect 1 1 2 0; #X connect 2 0 3 0; #X connect 2 0 18 1; #X connect 3 0 16 0; #X connect 4 0 5 0; #X connect 4 0 11 0; #X connect 5 0 7 0; #X connect 6 0 4 0; #X connect 7 0 4 1; #X connect 8 0 14 0; #X connect 9 0 13 0; #X connect 10 0 8 0; #X connect 10 1 9 0; #X connect 10 2 4 0; #X connect 11 0 8 1; #X connect 11 1 12 0; #X connect 12 0 9 1; #X connect 13 0 14 1; #X connect 14 0 1 0; #X connect 15 0 0 0; #X connect 16 0 2 1;
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list