| The current MYFLT code makes no distinction here. If you build the doubles
version of Csound, ~everything~ becomes double - both asigs and internal
computations, unless explicitly marked "float". Similarly, in the floats build,
asigs are floats, but so is any internal processing not explicitly marked as
"double". The MYFLT symbol make Csound easy to compile, but I question whther
it is the best engineering solution.
There is no single "ultimate criterion". We have both aesthetic and engineering
issues. Either may dominate at one time or another. Quality of sound is one
requirement, efficiency and processing speed is certainly another. No doubt the
user would like maximum flexibility to make their own choices. My argument is
that floats are sufficient for asigs and ftables (as Gabriel notes, even floats
may be too memory-intensive in some cases), but that internally opcodes,
especially recursive ones, may well need to use doubles. Relying so much on a
single ubiquitous MYFLT has confused the issue somewhat.
The engineering criterion requires us to find the most inexpensive solution that
is musically acceptable to the user. This has become a much more priority issue
now that users expect to use Csound in real-time, most of the time.
Many in the Pro-Audio worlds still claim that software plugins, even in double
precision, offer lower audio quality than equivalent hardware based systems
using 48bit internal precision, on 24bit words. Just using double precision may
hide a problem, rather than solve it, at the cost of a much greater memory
overhead, where not also CPU overhead. So where there is an audio quality
problem, I suggest that we look to fix the opcode in question, not the whole system.
Note that with proper headers, analysis files, like soundfiles, can be floats or
doubles independently of Csound itself. It is perfectly possihble to have a
double PVOC_EX file, for example, though I have never got around to implementing
it yet.
Richard Dobson
Michael Gogins wrote:
> When I said sample format, I meant the internal sample format for
> processing, not the soundfile sample format. In other words, the "double"
> version of Csound versus the "float" version.
>
> I haven't used pvoc extensively, and not at all in comparisons between
> double and float versions of Csound; my tests concerned my own scos and orcs
> and things like Trapped and Xanadu.
>
> Shouldn't the ultimate criterion be the musical ear?
>
>
|