| When I looked at it, my impression is that 0.51 is correct
as it rounds up if the length of the note is more than 1/2 k-cycle.
I think that bit of the code is correct. The bug seems to be elsewhere.
----- Original Message -----
From: "Steven Yi"
To: "Developer discussions"
Sent: Monday, October 06, 2008 8:19 AM
Subject: Re: [Cs-dev] Csound5 glitching
> Hi John,
>
> Yes, I agree it's a BUG, and haven't denied that; I simply wanted to
> point out on the side that I think the CSD as written is a bit
> problematic, for the author's benefit.
>
> Anyways, I took a look at Csound 4's musmon.c and insert.c. From a
> quick glance comparing sensevents in both csound5's Engine/musmon.c
> and musmon.c in Csound, I'm seeing this as a possible lead:
>
> [CSOUND 5 CODE in SENSEVENTS]
> if (O->Beatmode) {
> tval = csound->curBeat + (0.51 * csound->curBeat_inc);
> if (csound->frstoff->offbet <= tval) beatexpire(csound, tval);
> }
> else {
> tval = csound->curTime + (0.51 * csound->curTime_inc);
> if (csound->frstoff->offtim <= tval) timexpire(csound, tval);
> }
>
> [CSOUND 4 CODE in SENSEVENTS]
> if (O.Beatmode)
> beatexpire(curbt + hfkprd); /* rm any expired instrs */
> else
> timexpire(curp2 + hfkprd);
>
> [CSOUND 4 CODE in BEATEXPIRE]
> if ((ip = frstoff) != NULL && ip->offbet <= beat) {
>
>
> I think hfkprd is assigned .5 * ekr, while the check in Csound5 uses
> 0.51. If this is the bug, I assume it was done for a reason, but
> don't know why.
>
> Note: This may not be it, just what I found in quick glance.
>
> Thanks!
> steven
>
>
>
> On Sun, Oct 5, 2008 at 11:54 PM, jpff wrote:
>> The glitch is a BUG introduced in the rewrite on csound4 to csound5.
>> It is clear that there is at least one case when a note stops 1
>> k-cycle too early or a note starts 1 cycle too late. I have chasing
>> it back but progress is slow (and it is a week into term)
>> ==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
-------------------------------------------------------------------------
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 |