[sc-users] Generating non linear ramps
Batuhan Bozkurt
batuhan at batuhanbozkurt.com
Wed Oct 31 19:46:51 PST 2007
Thanks, EnvGen was behaving oddly for my purposes so I was using Sweep
which was only linear. That was why I asked this question(to have that
flexibility with sweep), but later I figured that EnvGen was working
fine with a few tweaks so it works now. Thanks!
BB
James Harkins wrote:
> Env([0, 999], [time], [curve])
>
> where curve == 0 means linear, curve < 0 pulls the line toward the
> left (faster change at first) and curve > 0 pulls it toward the right.
> The range for curve goes past -1 .. +1 -- I usually use about 3 or 4.
>
> Then stick that Env into an EnvGen.kr or .ar
>
> hjh
>
>
> On Oct 27, 2007, at 9:10 PM, Batuhan Bozkurt wrote:
>
>> 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
>> _______________________________________________
>> sc-users mailing list
>> sc-users at create.ucsb.edu <mailto:sc-users at create.ucsb.edu>
>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
>
> : H. James Harkins
>
> : jamshark70 at dewdrop-world.net <mailto:jamshark70 at dewdrop-world.net>
>
> : http://www.dewdrop-world.net
>
> .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
>
>
> "Come said the Muse,
>
> Sing me a song no poet has yet chanted,
>
> Sing me the universal." -- Whitman
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
More information about the sc-users
mailing list