Csound Csound-dev Csound-tekno Search About

[Csnd] enveloping

Date2008-12-19 05:31
FromDarren Nelsen
Subject[Csnd] enveloping
I'm writing a piece whose main instrument uses the granule opcode. I  
have tried every enveloping technique I know (including all four  
presented in The Csound Book) to cleanly fade the instrument out. But  
in all cases, at the end of the fade, the instrument just drops out.  
It will not fade to zero. It gets quieter and quieter and then...  
drops off a cliff. What gives?

--
Darren Nelsen
http://www.curiomusic.com


Date2008-12-19 05:53
FromPeter Lakanen
Subject[Csnd] Re: enveloping
I've never messed with granule, so this advice might not play out.

If you have an instrument that abruptly goes to silence prior to the end 
of the note, try creating a segmented envelope that zeros out the sound 
prior to the end of note.

Example:

a1 expseg 0.0001, (p3*.9), 1, (p3*.1), 1
ae = 1 - a1


Use ae as the envelope multiplier to create an inverse exponential 
envelope that goes to zero 90% of the way through the note.

Good luck.

-peter




Darren Nelsen wrote:
> I'm writing a piece whose main instrument uses the granule opcode. I 
> have tried every enveloping technique I know (including all four 
> presented in The Csound Book) to cleanly fade the instrument out. But in 
> all cases, at the end of the fade, the instrument just drops out. It 
> will not fade to zero. It gets quieter and quieter and then... drops off 
> a cliff. What gives?
> 
> -- 
> Darren Nelsen
> http://www.curiomusic.com
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
> 


-- 
   Peter Lakanen   lakanen@platinumweb.com
   Platinum Web Development  http://www.platinumweb.com
   1320 Terrace Street  Tallahassee, FL 32303
   850.508.4518   FAX: 850.681.1930

Date2008-12-19 06:29
FromDarren Nelsen
Subject[Csnd] Re: Re: enveloping
Ha! That worked. Thanks so much.

I used the oscil technique to create the envelope from a table and  
made sure the table went to zero early as you suggested. Works  
perfectly.

--
Darren Nelsen
http://www.curiomusic.com

On Dec 19, 2008, at 12:53 AM, Peter Lakanen wrote:

>
> I've never messed with granule, so this advice might not play out.
>
> If you have an instrument that abruptly goes to silence prior to the  
> end of the note, try creating a segmented envelope that zeros out  
> the sound prior to the end of note.
>
> Example:
>
> a1 expseg 0.0001, (p3*.9), 1, (p3*.1), 1
> ae = 1 - a1
>
>
> Use ae as the envelope multiplier to create an inverse exponential  
> envelope that goes to zero 90% of the way through the note.
>
> Good luck.
>
> -peter
>
>
>
>
> Darren Nelsen wrote:
>> I'm writing a piece whose main instrument uses the granule opcode.  
>> I have tried every enveloping technique I know (including all four  
>> presented in The Csound Book) to cleanly fade the instrument out.  
>> But in all cases, at the end of the fade, the instrument just drops  
>> out. It will not fade to zero. It gets quieter and quieter and  
>> then... drops off a cliff. What gives?
>> -- 
>> Darren Nelsen
>> http://www.curiomusic.com
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>
>
> -- 
>  Peter Lakanen   lakanen@platinumweb.com
>  Platinum Web Development  http://www.platinumweb.com
>  1320 Terrace Street  Tallahassee, FL 32303
>  850.508.4518   FAX: 850.681.1930
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>