fix typo in last submission for the ymf271.c and correct spacing

This commit is contained in:
Brian Troha 2009-11-01 03:38:36 +00:00
parent 48f5d42b1b
commit 35322eb88b

View File

@ -163,15 +163,15 @@ static const double DCTime[] =
There are 2 known errors in the LFO table listed in the original manual.
Both 201 & 202 were listed as 3.74490. 202 has be corrected to 3.91513
232 was listed as 13.35547 but has been replace with 14.35547.
232 was listed as 13.35547 but has been replaced with 14.35547.
Corrections are computed values based on formulas by Olivier Galibert & Nicola Salmoria listed below:
LFO period seems easy to compute:
Olivier Galibert's version Nicola Salmoria's version
Olivier Galibert's version Nicola Salmoria's version
int lfo_period(int entry) or int calc_lfo_period(int entry)
int lfo_period(int entry) or int calc_lfo_period(int entry)
{ {
int ma, ex; entry = 256 - entry;
entry = 256-entry;