Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Csound5 glitching

Date2008-10-04 18:30
Fromvictor
SubjectRe: [Cs-dev] Csound5 glitching
John,

sorry had no time to reply to your earlier e-mail. I noticed that
the rounding in (musmon.c, sensevents() ) seems to be the problem.

  tval = p->curTime + (0.51 * p->curTime_inc);
        if (p->frstoff->offtim <= tval){
            csound->Message(csound, "curtime: %f\n", p->curTime); /* I added
this to check the time*/
            timexpire(p, tval);
 }

you see tval is set to 1.750 at time1.749887:

curtime: 1.500000
B  1.250 ..  1.500 T  1.500 TT  1.500 M:  14142.1  14142.1
curtime: 1.749887
B  1.500 ..  1.750 T  1.750 TT  1.750 M:  14142.1  14142.1


and this is exactly when we get the glitch. But I was not able to find
a fix.

That was last week. I did not have time to progress on this, but
I think the musmon code is where we should look.

Victor

----- Original Message ----- 
From: "jpff" 
To: 
Sent: Saturday, September 27, 2008 12:00 PM
Subject: [Cs-dev] Csound5 glitching


>I have had a "complaint" that csound5 is inserting a glitch
>
>       "The glitch would occur in different places, depending on the
>       value of ksmps. They consist of a single k-period of zeros in
>       both output channels. When looking at the output in Sound
>       Forge, it's obvious that the glitch is being "inserted," as it
>       were, into an otherwise perfect audio wave"
>
> The report was on Windows and 5.08 but I can see it on 5.09.02 in Linux
> so this is generic.  Anyone have any suggestions as to where to look?
> Nasty thought was it could be the spinlocks but I cannot see how.
> I also notice that the output length is correct, which seems even
> funnier.
>
> ==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