Csound Csound-dev Csound-tekno Search About

Re: I want to add a simple line envelope to this resonfile...HOW???]

Date1998-10-23 15:47
FromHans Mikelson
SubjectRe: I want to add a simple line envelope to this resonfile...HOW???]
Sonicman wrote:

>> In the following orc. I just want to add an envelope to control the
>> A,D,S, of the Reson afilt,  any body know how?
>>
>> sr=44100
>> kr=4410
>> ksmps=10
>> nchnls=1
>>
>> instr 1
>> amp oscil 10000,p5,1
>> a1 line 2,3.5,10000

Try something like:

kfenv  linseg  0, p3*.2, 1000, p3*.3, 500, p3*.5, 400
afilt  reson   a1, 100+kfenv, (100+kfenv)/4