Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: adsr bug, linseg too

Date2008-09-30 08:43
Fromvictor
Subject[Csnd] Re: Re: Re: adsr bug, linseg too
It might be just the case of wrapping the ksmps performance loop
differently, but it needs testing. A TODO for 5.10

Victor
----- Original Message ----- 
From: "Oeyvind Brandtsegg" 
To: 
Sent: Tuesday, September 30, 2008 7:32 AM
Subject: [Csnd] Re: Re: adsr bug, linseg too


> Would it be possible to allow the a-rate version to change segments at
> a-rate without adding extra cost to the k-rate version ?
> I suspect the same applies to all (line, exp, trans) segment generators.
>
> Oeyvind
>
> 2008/9/29 Victor Lazzarini :
>> yes, I can see in the code that it seems to change segments only
>> at k-cycle boundaries, which looks to me to be the problem.
>>
>> At 11:07 29/09/2008, you wrote:
>>>
>>> (This is not new in 5.09, it has been here earlier as well)
>>> I discovered this bug using adsr, and later discovered that it's the
>>> same with linseg, possibly also other line/exp generators.
>>>
>>> The shortest segment possible with adsr is 1/kr, shorter segments will
>>> not be generated.
>>> The attached csd produces a correct amplitude envelope if ksmps = 100,
>>> but no envelope is generated if ksmps = 200.
>>> (The envelope will be a square window with amplitude = sustain level)
>>>
>>> Oeyvind
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>> Content-Type: application/octet-stream; name=adsr.csd
>>> X-Attachment-Id: f_floxs0og0
>>> Content-Disposition: attachment; filename=adsr.csd
>>
>> Victor Lazzarini
>> Music Technology Laboratory
>> Music Department
>> National University of Ireland, Maynooth
>>
>>
>> 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"