Issue with line function at 44100 sampling
Date | 2005-10-15 18:34 |
From | "Barry Griffin (sent by Nabble.com)" |
Subject | Issue with line function at 44100 sampling |
Hi,
I have the following csound code - sr = 44100 kr = 4410 ksmps = 10 nchnls = 2 instr 1 a1 line p5, p3, p6 outs a1, a1*0 endin instr 2 a1 line p5, p3, p6 outs a1*0, a1 endin f1 0 4096 10 1 i1 0.0 0.01 80 0 2000 i1 0.01 0.01 80 2000 4000 i2 0.0 0.02 80 0 4000 e For some reason, I do not get the exact same signal in each channel with this code, can anyone tell me why? If I change the sampling rates as follows - sr = 40000 kr = 4000 then I do get the same signal in each channel. I'm using CSoundAV. Thanks for your help, Barry. Sent from the Csound - General forum at Nabble.com. |
Date | 2005-10-15 19:11 |
From | Istvan Varga |
Subject | Re: Issue with line function at 44100 sampling |
Barry Griffin (sent by Nabble.com) wrote: > For some reason, I do not get the exact same signal in each channel with > this code, can anyone tell me why? This can be the result of limited floating point accuracy, or even more likely the fact that all note timings are rounded to integer multiples of 1/kr seconds. You cannot have a note with a start time or duration of exactly 0.01 seconds at kr=4410, because it would be non-integer (44.1) control periods. |