[sc-users] Generating non linear ramps
Batuhan Bozkurt
batuhan at batuhanbozkurt.com
Sun Oct 28 03:10:38 PST 2007
Hi,
I'm a bit stuck behind the maths of this. The functionality I want is
like Max/MSPs curve~ object(which is a non linear ramp generator).
I have a linear ramp going from 0 to 999 let's say. I want to vary the
slope of this ramp by a control number between -1 and 1. Values between
0 and 1 should generate an exponential ramp, if control value is closer
to 0 then ramp is more linear, moving towards 1, the ramp should be more
exponential.
Similarly, values between 0 and -1 should produce a logarithmic ramp.
Closer to 0, more linear the ramp. Moving towards -1 should produce a
more logarithmically curved ramp.
I'm not sure if the maths behind this is hard. I can almost imagine it
but when it comes into formulating it, I become stuck.
The control numbers between -1 and 1 are just examples, they can be
anything of course.
How can I implement this(server side)? Or maybe something like this is
achievable by some builtin function? I've searched the help files but,
no joy.
Thanks for your help in advance.
Batuhan
More information about the sc-users
mailing list