[Csnd] trying to understand gen05
Date | 2009-08-01 08:02 |
From | Stefan 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 |
Date | 2009-08-01 10:45 |
From | victor |
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
|
Date | 2009-08-01 17:03 |
From | Stefan 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>
|
Date | 2009-08-01 21:58 |
From | victor |
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
|