Quantcast

[Csnd] vcomb behaviour

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Csnd] vcomb behaviour

Victor Lazzarini
vcomb seems to be doing a very strange thing:

after it runs, it seems to change the constant '1' into '44100'.
Very funny indeed. Try this:

acmb  vcomb  as1, krvt, klt, 1
asyn  oscili p4*kamp, p5*kfreq, 1


I get 'unknown ftable no.44100'.
If I change the order, it's OK. But then if I start another note after that,
it does the same thing.

I haven't had time to check the code, but it's a bug (in 4.23 and 5)

Victor


Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth

--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] vcomb behaviour

jpff
Yes, the code says....

      lpt = p->xlpt;                    <************************
      for (n=0; n<nsmps; n++) {
        xlpt = (unsigned long)((*p->insmps != 0) ? *lpt : *lpt * csound->esr);
        if (xlpt > maxlpt) xlpt = maxlpt;
        if ((rp = wp - xlpt) < startp) rp += maxlpt;
        if ((p->rvt != *p->krvt) || (p->lpt != *lpt)) {
          p->rvt = *p->krvt, p->lpt = *lpt; <********************
          g = p->g = (MYFLT)pow(0.001, (p->lpt / p->rvt));

And I have marked the problem lines.  It should not do the writeback
in the second line.  Easy enough to fix...... anything but marking
==John ffitch
--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] vcomb behaviour

jpff
In reply to this post by Victor Lazzarini
Apologies; that is the right area but the details still escape me.
There is this multiplication by sample rate but I cannot see the write
back now.

Hum... perhaps marking is to be preferred.....
--
Send bugs reports to [hidden email]
              (or to http://www.cs.bath.ac.uk/cgi-bin/csound )
To unsubscribe, send email to [hidden email]
Loading...