Math behind the curve~ object
Hey guys,
I'm looking for the correct mathematical formula for the curve~ object. Didn't find anything about that here in the forum. Tried a few "tricks", which came to my mind to find out, what formula is behind curve~, but I'm too beginner in such things and it didn't work. So I thought, I will ask here. Maybe someone knows what to do or where to find it. Thanks in advance so far!
Chris
according to the reference it does exp when you use positive values and log when you use negative values.
the glissando example stinks in my opinion, but do i know. :)
Hi
I don't have Max on this machine, but:
I solve such questions by trial and error, as I don't have the maths chops. Do a linear ramp, from 0 to 1 for example (normalization is good for clarity), and then do [pow N] where N < 1. Then vary N and observe the result, you'll get expon or lin output.
Are you just curious, or trying to design DIY mapping functions? Max pretty much has ALL the bases [sic] covered !!
HTH
Brendan
PS
at the risk of sounding like a ball-buster: I typed your two key terms "curve formula" into the forum search form, and got loads of clear answers (which I have now bookmarked, so I can aspire to expertise later). Once again, this forum rules all.
Brendan
Thanks guys for the replies!
@Roman: what it does is very clear to me, but the correct math behind that object what be interesting for implementing in C++. And: yes, the reference (glissando) sucks.
@Brendan: as I told Roman above, I'm looking for the formula, because of implentation into C++ code. I did the same as you in the search field, but only found the same like you did. sorrily that didn't bring me any further, because the only link, which could help me, is broken. In case I'm erring at the moment, maybe you could help me for finding the the best thread. I'm not a native speaker (as you maybe already mentioned), so that could be the cause why I didn't find the best thread with the right way for me. Sorry for that. And you're not a ball-buster but a kind person, who wanted to show me the right way! :-)
Cheers
second post from christopher: https://cycling74.com/forums/finding-curves-formula-having-the-max-the-min-and-the-mid
while this would work, it of course does not prove that this is what the curve object actually does.
That was quick. Thank you, Roman. I guess I will try some proving with it. :-)
Take a look at gen~.curve.maxpat in the gen examples folder :-)