ymfm icon indicating copy to clipboard operation
ymfm copied to clipboard

OPLL Modulator Release Issue?

Open BleuBleu opened this issue 1 month ago • 0 comments

Hi! First of all thank you for this awesome lib. Its really easy to use and well made.

I'm wondering if there is a little inaccuracy in the OPLL emulation of modulator release rate when the envelope is in sustained mode (non-percussion).

It seems fairly well documented that the hardware ignores the release rate (assume 0) in this case.

References:

  • https://github.com/andete/ym2413/blob/master/results/20151231/envelope.txt#L430
  • https://github.com/nukeykt/Nuked-OPLL/blob/master/opll.c#L808
  • https://github.com/digital-sound-antiques/emu2413/commit/b7174b91ec1f5b6fd6970425b0713050a85009ad

I have not gotten around to testing it on real hardware yet, but wanted to check with you first.

-Mat

BleuBleu avatar Nov 21 '25 21:11 BleuBleu