| Try running it with kr=sr. Csound always rounds (truncates?) things to the
end of the nearest ksmps frame. If kr=sr you should be good to the nearest
1/sr seconds (allowing for tempo of course).
At 9:12 PM +0200 4/6/99, Lemoine Jean-Pierre wrote:
>I need help on the following subject: for perfect looping in the VRML
>world, I need to calculate the exact length of the sound file produced
>by Csound, but it doesn't appear to be so trivial. For example, if the
>last event is "i2 19.875 0.125 ", I expect the length to be 20, but
>every sound editor I am using tells me 19.990. If I force the length to
>20: f 0 20, I obtain also 19.990.
>Where is the truth? How to have the correct length?
>Thanks for your help.
>jean-pierre lemoine (currently uploading HPKComposer version 1.7 on the
>Web.....)
----------------------------------------------------------------
Prof. R. Erik Spjut (spyoot rhymes with cute)
Engineering Department, Harvey Mudd College, Claremont, CA 91711
erik_spjut@hmc.edu Ph. (909) 607-3890 Fax (909) 621-8967
|