Csound Csound-dev Csound-tekno Search About

[Csnd] trying to understand gen05

Date2009-08-01 08:02
FromStefan Thomas
Subject[Csnd] trying to understand gen05
Dear community,
having some free days know, I try to better understand the (for me) complex and exotic world of csound.
Today I've learned set one can use the gen05 routine together with the envlpx opcode, to get an amplitude envelope, e.g.:
f 9  0 513  5    .001 128 .8  128 .6  256  1
 The problem I have now, is: how long does a segment of this amplitude envelope exactly last?
I guess the even-numbered fields are not absolute but relative values, aren't they?
Thank You for Your patience,
Stefan
 

Date2009-08-01 10:45
Fromvictor
Subject[Csnd] Re: trying to understand gen05
Envlpx uses the table function in the attack portion of the sound,
so this segment lasts for the attack time you set. Each segment
will last a portion of that, eg.
 
(seg_size/table_size)*att_dur
 
In the case of
 
.001 128  .8 128 .6 256  1
 
If you have an attack time of 1 sec, then this will be like this
 
.001  to  .8      takes 0.25s  
.8     to  .6       takes 0.25s
.6     to   1       takes  0.5s
 
 
 
Victor
----- Original Message -----
Sent: Saturday, August 01, 2009 8:02 AM
Subject: [Csnd] trying to understand gen05

Dear community,
having some free days know, I try to better understand the (for me) complex and exotic world of csound.
Today I've learned set one can use the gen05 routine together with the envlpx opcode, to get an amplitude envelope, e.g.:
f 9  0 513  5    .001 128 .8  128 .6  256  1
 The problem I have now, is: how long does a segment of this amplitude envelope exactly last?
I guess the even-numbered fields are not absolute but relative values, aren't they?
Thank You for Your patience,
Stefan
 

Date2009-08-01 17:03
FromStefan Thomas
Subject[Csnd] Re: Re: trying to understand gen05
Dear Victor,
thanks for Your reply.
I guess I've got it, to some extent. What I don't understand at the moment is:
How long do the segments last, if I don't have defined a concrete attack time, e.g. when I use midi-input?

2009/8/1 victor <Victor.Lazzarini@nuim.ie>
Envlpx uses the table function in the attack portion of the sound,
so this segment lasts for the attack time you set. Each segment
will last a portion of that, eg.
 
(seg_size/table_size)*att_dur
 
In the case of
 
.001 128  .8 128 .6 256  1
 
If you have an attack time of 1 sec, then this will be like this
 
.001  to  .8      takes 0.25s  
.8     to  .6       takes 0.25s
.6     to   1       takes  0.5s
 
 
 
Victor
----- Original Message -----
Sent: Saturday, August 01, 2009 8:02 AM
Subject: [Csnd] trying to understand gen05

Dear community,
having some free days know, I try to better understand the (for me) complex and exotic world of csound.
Today I've learned set one can use the gen05 routine together with the envlpx opcode, to get an amplitude envelope, e.g.:
f 9  0 513  5    .001 128 .8  128 .6  256  1
 The problem I have now, is: how long does a segment of this amplitude envelope exactly last?
I guess the even-numbered fields are not absolute but relative values, aren't they?
Thank You for Your patience,
Stefan
 


Date2009-08-01 21:58
Fromvictor
Subject[Csnd] Re: Re: Re: trying to understand gen05
When you use MIDI input you still have to choose an
attack time, but you will want to use envlpxr, because
you don't have p3. That will not affect your attack time.
 
Victor
----- Original Message -----
Sent: Saturday, August 01, 2009 5:03 PM
Subject: [Csnd] Re: Re: trying to understand gen05

Dear Victor,
thanks for Your reply.
I guess I've got it, to some extent. What I don't understand at the moment is:
How long do the segments last, if I don't have defined a concrete attack time, e.g. when I use midi-input?

2009/8/1 victor <Victor.Lazzarini@nuim.ie>
Envlpx uses the table function in the attack portion of the sound,
so this segment lasts for the attack time you set. Each segment
will last a portion of that, eg.
 
(seg_size/table_size)*att_dur
 
In the case of
 
.001 128  .8 128 .6 256  1
 
If you have an attack time of 1 sec, then this will be like this
 
.001  to  .8      takes 0.25s  
.8     to  .6       takes 0.25s
.6     to   1       takes  0.5s
 
 
 
Victor
----- Original Message -----
Sent: Saturday, August 01, 2009 8:02 AM
Subject: [Csnd] trying to understand gen05

Dear community,
having some free days know, I try to better understand the (for me) complex and exotic world of csound.
Today I've learned set one can use the gen05 routine together with the envlpx opcode, to get an amplitude envelope, e.g.:
f 9  0 513  5    .001 128 .8  128 .6  256  1
 The problem I have now, is: how long does a segment of this amplitude envelope exactly last?
I guess the even-numbered fields are not absolute but relative values, aren't they?
Thank You for Your patience,
Stefan