Csound Csound-dev Csound-tekno Search About

[Csnd] envelope follower

Date2009-03-09 17:10
FromLuís Antunes Pena
Subject[Csnd] envelope follower
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





Date2009-03-09 17:17
FromDavid Akbari
Subject[Csnd] Re: envelope follower
Recently I've just been using the rms opcode.

I'm interested though, if people have more demos or examples using the
compress opcode, for example as a gate controlled by another input
signal (referred to as sidechaining in the audio engineering
literature).


-David

On Mon, Mar 9, 2009 at 12:10 PM, Luís Antunes Pena  wrote:
>
> 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"


Date2009-03-09 17:36
FromAidan Collins
Subject[Csnd] Re: Re: envelope follower
There is also a 'follow' opcode.
http://csounds.com/manual/html/follow.html
I'd be interested in hearing what you end up using, and if you get good results!

Aidan



On Mon, Mar 9, 2009 at 1:17 PM, David Akbari  wrote:
> Recently I've just been using the rms opcode.
>
> I'm interested though, if people have more demos or examples using the
> compress opcode, for example as a gate controlled by another input
> signal (referred to as sidechaining in the audio engineering
> literature).
>
>
> -David
>
> On Mon, Mar 9, 2009 at 12:10 PM, Luís Antunes Pena  wrote:
>>
>> 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"


Date2009-03-09 19:26
FromLou Cohen
Subject[Csnd] Re: Re: Re: envelope follower
I use "follow" in my realtime improviser with excellent results.

-Lou


\On 3/9/09 13:36, "    Aidan Collins"  wrote:

> There is also a 'follow' opcode.
> http://csounds.com/manual/html/follow.html
> I'd be interested in hearing what you end up using, and if you get good
> results!
> 
> Aidan
> 
> 
> 
> On Mon, Mar 9, 2009 at 1:17 PM, David Akbari  wrote:
>> Recently I've just been using the rms opcode.
>> 
>> I'm interested though, if people have more demos or examples using the
>> compress opcode, for example as a gate controlled by another input
>> signal (referred to as sidechaining in the audio engineering
>> literature).
>> 
>> 
>> -David
>> 
>> On Mon, Mar 9, 2009 at 12:10 PM, Luís Antunes Pena  wrote:
>>> 
>>> 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"
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"





Date2009-03-09 19:36
FromOlivier Baudouin
Subject[Csnd] Re: envelope follower
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"
>