Forums > Jitter

Mandelbrot Set Fractal Generation?

Mar 03 2009 | 1:23 am

I was wondering if it possible using Jitter to create a Mandelbrot Set fractal generator? I wanted to create a Jitter patch that would allow me to create the fractal and zoom into it in real time (i.e. it zooms without me having to control the zoom). My ultimate goal is to use the values output by the fractal to create an additive synthesis patch that uses the fractal to create music.

I was also wondering if it would be possible to take that music created by the fractal and then have Max analyze the tones (pitch) and have it feed back into the fractal generating the color scheme. I don’t know if that would be wise though, having the output feed back into the fractal which is generating the output.

I’ve tried to find any work that others may have done similar to this in creating the Mandelbrot set through Max and the only patch I found was located here:
but when I attempted to open it I just got a bunch of arbitrary symbols rather then text I could put into Max.

Can anyone point me in the direction of creating something with Max that will allow me to generate the mandelbrot set?

Mar 03 2009 | 9:41 am

what system are you on?

i just opened that link up on a mac no probs… if ur on pc, u will need something that can uncompress .sit files.

FYI, the patch is in max 4 format…


Mar 03 2009 | 4:22 pm

wow, geocities still exists?

Mar 03 2009 | 8:41 pm

I’m on Mac OSX. That’s really wierd, I’ve used both Stuffit on PC and on Mac and I get garbled symbols… I’ve tried redownloading and still have the same problem. If it works for you would you mind pasting the text of the patch here for me to copy?

Mar 04 2009 | 3:43 am

thats funny, that patch works in max 5 but not max 4… someone said it was a max 4 patch?

Mar 04 2009 | 9:44 am

well it works fine here… ymmv…

Feb 19 2010 | 6:01 pm

Hi there, the page with patch your talking about isn’t available anymore. Would anyone be able to pass the patch on.


Feb 22 2010 | 5:21 am


Geocities is now no more. [edit: free hosting at Geocities, that is]

this might be of interest:

//Mandelbrot Set js for jsui in Max
// adapted from Applet from The Nonlinear Workbook (Steeb 2005) pp.238
// by sdf 2007
function Mandelbrot()
var w = 256;
var h = 256;
var index = 0;
var iter = 0;
var count = 0;
for (y = 0; y < h; y++)
b = (y-128)/64.0;
for (x=0; x < w; x++)
a = (x-128)/64.0;
p = q = 0.0;
iter = 0;
while (iter < 32)
psq = p*p;
qsq = q*q;
if (psq + qsq >= 4.0) break;
pnew = psq – qsq + a;
qnew = 2.0 * p * q + b;
p = pnew;
q = qnew;
if (iter == 32) sketch.setpixel(x, y, 0, 0, 0);


  1. Mandelbrot_Set_by_sdf.jpg


May 26 2010 | 4:14 am


i’m new on this of using JS with max … of the code to generate the mandel,

what is psp and qsq?
i dont understan how many inlets and outlets to put and wich variables use in the inlets.

in resume i dont know what i hav to do to see the fractal . i hope i explain it good enough.


Viewing 9 posts - 1 through 9 (of 9 total)

Forums > Jitter