Forums > MaxMSP

mexican hat

September 10, 2010 | 7:59 am

does anyone have a function generator (float data) to generate a "mexican hat" waveform?

i have a custom gaussian generator, and i have peter castines patch for
laplace, (which i think is identically with the mexican hat) but both dont
create curves for waves, they are only creating random numbers of the
respective distribution.

-110


September 10, 2010 | 8:38 am

Not sure what kind of function you are after, but there are some very handy patches out there for similar things.

Try the patch sm.window-maker by Steven Miller.

http://www.stevenmmiller.net/software.html

Also one of Fredrik Olafsons abstractions could be the one. Look at "Make envelopes".

http://www.fredrikolofsson.com/pages/code-max.html

And Graham Wakefield posted a very nice patch in this thread:

http://www.cycling74.com/forums/topic.php?id=18071

Maybe not what you where after?


September 11, 2010 | 3:31 pm

sm.window-maker … yeah i have my custom window makers, too, that is what it is about.

the function "flat-top" seems to be at least something similar to laplace, the form
looks familiar, just the weighting seems different.
mexican hat / laplace should result in almost identical sqare-roots (energy) for both poles.


September 17, 2010 | 12:55 am

OK, let me start off by saying that I know fuck all about this.

However, if a mexican hat is a negative normalised distribution of a second derivative of a Gaussian function, then is this any help?

Gaussian function.

a*e^(-((x-b)^2)/(2*(c^2)))

Second derivative of a Gaussian function.

(a*e^(-((b-x)^2)/(2*c^2)) * (b^2 – 2*b*x – c^2 + x^2)) / c^4

;)


September 21, 2010 | 10:21 am

… hmm … set new members to "moderated" ?



EMV
September 21, 2010 | 11:08 am

Or add a difficult captcha for new members? Or implement the Akismet API? (the latter is probably a lot of work, but it works very well)


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