Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: envelope follower

Date2009-03-10 11:37
FromLuís Antunes Pena
Subject[Csnd] Re: Re: envelope follower
Thanks for all the answers.
I tried FOLLOW with very good results. It works much better than the simple LPF I have been using. I didn' used it with BALANCE like the example on the manual because it turned out to have a strange behaviour - although BALANCE alone can give very funny results!

I'll also try this solution with the if-clause.

Luis

Olivier Baudouin schrieb:
> Hi,
>
> Personally, I use the following orchestra to apply an envelope from an audio file to another. It works fine. The dedicated opcodes don't run  properly for this use,  from my own experience.
>
> Olivier.
>
> -----------------
>
> ain1b init 0
> ain1c init 0
> ithreshold = 20 ;
>
> fin "target.wav", 0, 1 , ain1b
> fin "source.wav", 0, 1 , ain1c
>
> aenv2 follow ain1c, 0.25
> aenv1 follow ain1b, 0.25
> kenv2 downsamp aenv2
> kenv1 downsamp aenv1
>
> if (kenv1 != 0) kgoto label0 ;avoid division by zero
>   kenv2 = 0
>   kenv1 = 1
>
> label0:
> kmul = kenv2/kenv1 ;multiplier
>
> if (kmul < ithreshold) kgoto label1 ;avoid clicks
>   kmul = 1
>
> label1:
> kmul2 portk kmul, 1, 0 ;smoothing
>
> asig = ain1b*kmul2
> out asig
>
> ------------------------
>
> Luís Antunes Pena a écrit :
>> Hello,
>>
>> I wonder if is there anyone with experience creating an envelope follower in csound.
>> The main component should be a low pass filter but I am not sure which one is the most appropriate. tone? butterlp?
>>
>> Any ideas?
>>
>> Luis
>>
>>
>> l u i s   a n t u n e s   p e n a http://icem.folkwang-hochschule.de/~pena http://sumtone.com
>> http://www.myspace.com/kaurimusik
>>
>>
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>   
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


 
---
luis antunes pena
schornstr. 27
45128 essen
germany

atelier:
kunsthaus essen
ruebelzahlstr. 33
45134 essen

http://icem.folkwang-hochschule.de/~pena
http://sumtone.com
http://www.myspace.com/kaurimusik