http://www.geocities.ws/billy_stiltner/music/pd/manit.pd is an abstraction that accepts as input:
a bang to perform an iteration
a bang to restart orbit
k,l(real and imag of C)
boundary ie. 4 if the escape boundary has a radius of 2
and numits - 0=free running
outputs are:
itnum(resets to 0 on escape or numits reached)
x,y(real and imag of Z)
xesc,yesc(real and imag of Zescape) only when an orbit escapes boundary
a bang when an orbit escapes
a bang when an orbit reaches numits
to put x or y to notes use this expr
[expr (($f1 + 4) / 8 * $f2) + $ f3]
f1 = x or y(make one expr ezch for x and y)
$f2 = scale factor (this stretches or compresses the range of notes)
$f3 = offset(this transposes the notes up or down a step)
output is a note number which can feed a mtof or table lookup for nonstandard tunings.
You could also use the old scaling algorithm.
This implementation uses abs( in the boundary check to get rid of some of the flying off to space notes)
One of these days I should make an example and help file. Curently the only patches I have using this have way too many other patches and tangled messes of wires to submit as an example.