mist-devel / fpgagen

SEGA Genesis/Megadrive core, running on the MIST
8 stars 6 forks source link

New PSG (yet again) #49

Closed jotego closed 5 years ago

jotego commented 5 years ago

Worked on feedback provided by Gyurco. There were a few bugs in the previous version, which are corrected now:

  1. dB table was made using 10log instead of 20log, so there was too much attenuation
  2. Noise channel frequency was implemented in a wrong way. Fixed now.
  3. Low pass filter for output was dropping 1 bit because of rounding up and that made some sounds disappear
  4. PSG and FM mix volume was not correct. I have verified it now with Streets of Rage original recordings

Overall you should feel a better sound with this new PSG, particularly when there is a sweep in volume as volume scaling in old PSG is not linear in dB with a 2dB step, as it should be.

I may release an update of jt89 if I come up with a nice DC-removal filter that can be synthesized without much FPGA resources.

Please review and merge this version.