Csound Csound-dev Csound-tekno Search About

Re: Curve equation needed...

Date1997-03-03 00:00
FromTobias Kunze
SubjectRe: Curve equation needed...
> y=(1-(1-x)^n)^(1/n)

I'm not a math whiz, but why not simply y=x^n?



-- 

______________________________________________________________________

Tobias Kunze                       t@kunze.stanford.edu
CCRMA, Stanford University         http://www.stanford.edu/~tkunze

Date1997-03-03 01:58
FromEli Brandt
SubjectRe: Curve equation needed...
Tobias Kunze wrote:
> [somebody wrote]
> > y=(1-(1-x)^n)^(1/n)
> 
> I'm not a math whiz, but why not simply y=x^n?

Tweak: I think Marc wanted it to go the other way, y=x^(1/n).
It's worth trying both this and the more-complex "superellipse"
distortion, since they'll likely sound different.  (And the NURBS,
too, if anyone knows how. :-)

Here's another class of functions to try:
        y = S(nx) / S(n)
where S(-inf) = -1, S(0) = 0, S(inf) = 1, S'(0) = 1.
(e.g. an exponential or arctan sigmoid, or the response curve of a
tube amp.)

Like the other suggestions, it lacks the desired property of working
at n=0.

-- 
   Eli Brandt
   eli+@cs.cmu.edu