Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Csound5 glitching

Date2008-10-07 18:28
Fromvictor
SubjectRe: [Cs-dev] Csound5 glitching
I got about five. And three of Andres' today.

Victor
----- Original Message ----- 
From: "Steven Yi" 
To: "Developer discussions" 
Sent: Tuesday, October 07, 2008 5:57 PM
Subject: Re: [Cs-dev] Csound5 glitching


> How many did you get? I only sent one copy of this email and only one
> shows up on Nabble:
>
> http://www.nabble.com/Csound5-glitching-td19814363.html
>
> and is not about 0.51, but rather the division by the curTime_inc
> which is already 1/kr, which is different than what was in Csound4,
> which is just multiplying by kr.
>
> On Tue, Oct 7, 2008 at 1:45 AM, Victor Lazzarini
>  wrote:
>> why do we keep getting copies of Steven's messages?
>>
>> At 16:02 06/10/2008, you wrote:
>>>Hi All,
>>>
>>>Just to note, there is also some code with 0.51 in schdofftim in
>>>insert.c (just wanting to point out differences I'm finding between
>>>Csound4 and Csound5).
>>>
>>>Another thing I found in sensevents; in Csound 4 there is:
>>>
>>>if (O.Beatmode)
>>>         kcnt = RNDINT(((double) nxtbt - (double) curbt)
>>>                                     * (double)
>>>ekrbetsiz);/*(long)((nxtbt - curbt) * ekrbetsiz + FL(0.5));*/
>>>       else
>>>         kcnt = RNDINT(((double) nxtim - (double) curp2)
>>>                                     * (double) ekr);/*(long)((nxtim -
>>>curp2) * ekr + FL(0.5));*/
>>>
>>>and Csound 5 there is:
>>>
>>>/* calculate the number of k-periods remaining until next event */
>>>       if (O->Beatmode)
>>>         csound->cyclesRemaining =
>>>           RNDINT((csound->nxtbt - csound->curBeat) / 
>>> csound->curBeat_inc);
>>>       else
>>>         csound->cyclesRemaining =
>>>           RNDINT((csound->nxtim - csound->curTime) / 
>>> csound->curTime_inc);
>>>
>>>One is doing a multiplication and the other a division.  In Csound5,
>>>curTime_inc looks like it is set as:
>>>
>>>  p->curTime_inc = 1.0 / (double) p->ekr;
>>>
>>>in Engine/otran.c.  I could see losing precision with the division by
>>>the value that is already 1/kr, so perhaps something is happening
>>>there?
>>>
>>>Thanks!
>>>steven
>>>
>>>
>>>
>>>On Mon, Oct 6, 2008 at 3:26 AM, jpff  wrote:
>>> > Yes; tried replacing 0.51 with 0.5 -- did not fix it.  The problem is
>>> > before then as it is already wrong before it calls expire -- the
>>> > problem is the next bnot being too late, not the expiry being wrong.
>>> > ==John ffitch
>>> >
>>> > -------------------------------------------------------------------------
>>> > This SF.Net email is sponsored by the Moblin Your Move
>>> Developer's challenge
>>> > Build the coolest Linux based applications with Moblin SDK & win
>>> great prizes
>>> > Grand prize is a trip for two to an Open Source event anywhere in the 
>>> > world
>>> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> > _______________________________________________
>>> > Csound-devel mailing list
>>> > Csound-devel@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >
>>>
>>>-------------------------------------------------------------------------
>>>This SF.Net email is sponsored by the Moblin Your Move Developer's 
>>>challenge
>>>Build the coolest Linux based applications with Moblin SDK & win great 
>>>prizes
>>>Grand prize is a trip for two to an Open Source event anywhere in the 
>>>world
>>>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>_______________________________________________
>>>Csound-devel mailing list
>>>Csound-devel@lists.sourceforge.net
>>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Victor Lazzarini
>> Music Technology Laboratory
>> Music Department
>> National University of Ireland, Maynooth
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great 
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the 
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great 
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the 
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net