Hi,

On 02/08/15 03:48, Pagano, Patrick wrote:
i need to know how to generate a list that looks like this
so it's an 8X12 matrix of values between 0 and 255
is there a simple way in pure data that i can create such an animal?

The following lol-script* will do this:

        lol loadbng;
        range 12;
        range 8;
        bng;
        random 255;
        gathern 8;

This will output 12 lists of 8 random integers between 0 and 255.

If you want a single list with all of the values add the following object to the bottom of the script:

        gathern 12;

* lolPd = https://github.com/chr15m/lolPd

Cheers,

Chris.

--
http://mccormick.cx/

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to