How to run through all the RGB colour values?

Oli Mason's icon

The question says it all!

i want to be able to get some way of running through them all individually?

heres my patch so far, its isn't correct as it only get 1/4 of the possible values.

any help much appreciated.

Max Patch
Copy patch and select New From Clipboard in Max.

Thanks!

mzed's icon

Maybe you need to set the carry count flags on your counters to bang.

ahmet kizilay's icon
Max Patch
Copy patch and select New From Clipboard in Max.

your patch looks too complicated...
this is how I would implement it... (sorry if I am not being helpful)

Oli Mason's icon

Hi,

Thanks for your help Ahmet, your patch seems to have done the trick.

(Your right mine was a little complicated!)

Regards,

Oli

Oli Mason's icon

@ahmet if you get chance would you mind annotating your patch, just so i can understand it a little.

Thanks!

ahmet kizilay's icon

I don't have Max installed on this computer, but I can just explain it.

It is actually pretty straight forward.

each uzi represents a single color plane of RGB.
uzi-B spits out values from 0 to 255.
each value of uzi-B triggers uzi-G to spit out values from 0 to 255.
and in turn each value of uzi-G triggers uzi-R to spit out values from 0 to 255.

values from uzi-B and uzi-G is collected in a [pack 0 0 0] as the second and third inlet argument.
values from uzi-R triggers the [pack] as it is the first inlet argument.

in the end you get a RGB list for every possible values...

I hope this helps (I can post an annotated patch later today).

ahmet kizilay's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here is the patch with annotations. I also added a small proof of concept patch to help you better understand it.

Floating Point's icon

you could also put the patch in debug mode and step through to better understand the process; control loops in max are always tricky to implement and get your head around (due to the unsuitability of data-flow model)

Oli Mason's icon

Thanks for the help everyone (sorry for the late reply)

I'm going to have a tinker with my patch see if i can get the result I'm after now that you guys have solved that little issue.

(might be back for more help later :p )

Kind Regards,

Oli