Csound Csound-dev Csound-tekno Search About

Re: Higher numerical precission in Csound

Date1999-06-06 18:01
FromMichael Gogins
SubjectRe: Higher numerical precission in Csound
Actually, casting floats to doubles and back is just another place for
round-off errors. The universal practice in DSP software engineering is to
get into the largest sample size that you need at the very beginning, and
stay there until you are done.

-----Original Message-----
From: Nathan Day 
To: csound@maths.ex.ac.uk 
Date: Sunday, June 06, 1999 3:20 AM
Subject: Re: Higher numerical precission in Csound


>I haven't really even looked at the csound code, but from what I understand
>it is only the signal varibles (a-type, k-type, i-type) which are set as
>single precision floats. There is nothing to stop ugens from using doubles
>internally with inputs and output as singles, in fact I asumed that doubles
>were used for filter coefficiants. What advantage would there be in double
>precision signal varibles. The disadvantages would be slower code both from
>the actually precision as well as more (2x) cache misses, and a whole lot
of
>work.
>
>nathand@senet.com.au