[PD] Creating Eucliadean note patterns with pd for Mutable Instruments Grids

Chris McCormick chris at mccormick.cx
Mon Aug 3 06:09:28 CEST 2015


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/



More information about the Pd-list mailing list