[sc-users] Amplitude Ugen - modulating atk / rel time
Jeremy Zuckerman
jz at sonicartist.com
Fri Dec 1 12:22:42 PST 2006
cool! i'll check that out. thanks josh.
-j
On Nov 29, 2006, at 4:17 PM, Joshua Parmenter wrote:
> Also, there is the AmplitudeMod UGen that Blackrain made. Attacks
> and decay times can modulate.
>
> You can get it here:
>
> http://sourceforge.net/projects/sc3-plugins/
>
> Josh
>
>
> On Nov 29, 2006, at 3:06 PM, Jeremy Zuckerman wrote:
>
>> thanks for the example julian. would this be the best way
>> (sonically) to do this:
>> {
>>
>> var a, b, x, p, buf, p2, buf2;
>> s = Server.internal;
>> buf = Buffer.read(s,"/Applications/SuperCollider_f/sounds/sc/
>> envFile");
>> buf2 = Buffer.read(s, "/Applications/SuperCollider_f/sounds/sc/
>> breathPad1");
>> x = Impulse.kr(10) * LFNoise1.kr(1).abs;
>> p = PlayBuf.ar(1, buf.bufnum, BufRateScale.kr(buf.bufnum), loop:1);
>> p2 = PlayBuf.ar(2, buf2.bufnum, BufRateScale.kr(buf2.bufnum),
>> loop:1);
>> a = Amplitude.ar(p, 0.01, 0.02);
>> b = EnvGen.kr(Env([0.0001, 1 * p, 0.0001], [MouseX.kr(0.001, 0.2,
>> 1), MouseY.kr(0.001, 0.2, 1)], \exp), p);
>> p2*b;
>> }.scope;
>>
>> it seems to have some fairly obvious artifacts because of the
>> overlapping and rapidly triggering envelopes.
>>
>> thanks!
>> -j
>>
>> On Nov 29, 2006, at 2:01 AM, Julian Rohrhuber wrote:
>>
>>>> can anyone tell me how to modulate the atk and rel time of
>>>> Amplitude? thanks.
>>>
>>> it's not currently implemented.
>>>
>>> as a quick fix for now, you may try this:
>>>
>>> // simulating a variable Amplitude decay with EnvGen
>>>
>>> {
>>> var a, b, x;
>>> x = Impulse.kr(10) * LFNoise1.kr(1).abs;
>>> a = Amplitude.kr(x, 0.01, 0.02);
>>> b = EnvGen.kr(Env([0.0001, 0.3 * x, 0.0001], [0.001, 0.08],
>>> \exp), x);
>>> K2A.ar([a, b])
>>> }.scope;
>>>
>>>
>>>
>>> (
>>> var f;
>>> f = {|in, attackTime=0.01, releaseTime=0.01|
>>> EnvGen.kr(Env([0.0001, 0.3 * in, 0.0001], [attackTime * 0.1,
>>> releaseTime * 4], \exp), in);
>>> };
>>>
>>> {
>>>
>>> f.(Dust.kr(3), MouseX.kr(0.001, 0.2, 1), MouseY.kr(0.001, 0.2, 1))
>>>
>>> }.scope
>>> )
>>> --
>>>
>>>
>>>
>>>
>>>
>>> .
>>> _______________________________________________
>>> sc-users mailing list
>>> sc-users at create.ucsb.edu
>>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>>>
>>
>> _______________________________________________
>> sc-users mailing list
>> sc-users at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
> ******************************************
> Joshua D. Parmenter
> http://www.realizedsound.net/josh/
>
> “Every composer – at all times and in all cases – gives his own
> interpretation of how modern society is structured: whether
> actively or passively, consciously or unconsciously, he makes
> choices in this regard. He may be conservative or he may subject
> himself to continual renewal; or he may strive for a revolutionary,
> historical or social palingenesis." - Luigi Nono
>
>
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-users/attachments/20061201/e55a9e57/attachment.htm
More information about the sc-users
mailing list