On 05/31/2016 05:50 PM, IOhannes m zmoelnig wrote: > On 2016-05-31 17:00, Miller Puckette wrote: >> I just tried "random 1e8" and "/ 1e8" and it seems to work for me. If it >> doens't for you that's a bug I should look at :) > > i really like the powers of the new [osc*] objects for these kind of things. >
here's an updated example, that properly generates numbers in to 0..1 range. it has full 24bit of (pseudo) randomness. gfmards IOhannes
#N canvas 380 157 778 607 10; #X obj 170 293 oscparse; #X obj 170 269 list prepend 47 97 0 0 44 102 0 0; #X obj 199 163 random 255; #X obj 228 187 random 255; #X obj 170 315 list split 1; #X obj 170 139 t b b b b; #X obj 258 209 random 255; #X obj 170 117 inlet; #X obj 210 387 outlet; #X obj 210 341 - 0.5; #X obj 210 363 / 1.5; #X obj 170 235 pack 63 0 0 0; #X connect 0 0 4 0; #X connect 1 0 0 0; #X connect 2 0 11 1; #X connect 3 0 11 2; #X connect 4 1 9 0; #X connect 5 0 11 0; #X connect 5 1 2 0; #X connect 5 2 3 0; #X connect 5 3 6 0; #X connect 6 0 11 3; #X connect 7 0 5 0; #X connect 9 0 10 0; #X connect 10 0 8 0; #X connect 11 0 1 0;
signature.asc
Description: OpenPGP digital signature
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
