Mandelbrot Set Fractal Generation?
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:http://www.geocities.com/snottywong_1999/maxmsp/mandelbrot_generator.sit
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?
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...
j
wow, geocities still exists?
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?
thats funny, that patch works in max 5 but not max 4... someone said it was a max 4 patch?
well it works fine here... ymmv...
Hi there, the page with patch your talking about isn't available anymore. Would anyone be able to pass the patch on.
thanks
hello,
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 Mandelbrot.java 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;
iter++;
}
if (iter == 32) sketch.setpixel(x, y, 0, 0, 0);
index++;
}
}
refresh();
}
Hello,
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.
thx