Changes
PSG
,/* D/A converter table */
== D/A converter table ==
These are the 16-bit values used in Arkos Tracker. They are more accurate than the datasheet you can find, as they were tested electronically by Grim and Zik directly from a real CPC:0, 231, 695, 1158, 2084, 2779, 4168, 6716, 8105, 13200, 18294, 24315, 32189, 40757, 52799, 65535
For the record, these are [https://groups.google.com/g/comp.sys.sinclair/c/-zCR2kxMryY Matthew (Gasman) Westcott measurements] (normalised) on its ZX Spectrum: 0, 2310.0105, 6950.0154, 11580.0216, 20840.0314, 27790.0461, 41680.0635, 67160.1061, 81050.1319, 132000.2163, 182940.2973, 243150.3908, 321890.5129, 407570.6371, 527990.8186, 655351
Thus, the theoretical formula is f(x) = 2 ^ ((x - 15) / 2) with x between 0 and 15.