mml2vgm icon indicating copy to clipboard operation
mml2vgm copied to clipboard

Support K054539?

Open musicalman opened this issue 2 years ago • 9 comments

こんにちは。 私はコナミのK054539サウンドチップのサポートをお願いしています。 これはK053260の後継で、私の意見では大きく改善されています。 サポートを追加することは可能だと思いますか?お時間をいただきありがとうございます。

musicalman avatar Oct 14 '21 22:10 musicalman

Gonna throw in a quick warning that the current emulation of the 054539 chip has it's flaws tho. Namely, the 4-bit DPCM decoding appears to be incorrect, resulting in artifacts in DPCM samples. (8-bit and 16-bit PCM samples appear to be fine) Additionally, the Echo/Reverb isn't emulated either.

May be probably best to disallow using the Reverb and 4-bit DPCM samples until the emulation in those two aspects has improved.

GTheGuardian avatar Oct 15 '21 09:10 GTheGuardian

Thanks for the heads-up! I've heard some truly horrible dpcm emulation with this chip, but vgmplay doesn't give me anything nearly that awful. Whether it's accurate or not I don't know. In vgmplay some tracks have echo/reverb applied but the echo appears pitch shifted down an octave. MDPlayer does the same, so I wouldn't doubt it's weird atm. In any case, mml2vgm doesn't support dpcm or reverb on similar chips yet, so omitting these features wouldn't be a big issue for me.

musicalman avatar Oct 15 '21 10:10 musicalman

OPXが残念な状態なので、あまり気が進まないですね。。。

kuma4649 avatar Oct 15 '21 11:10 kuma4649

混乱しています。K054539のエミュレーションはOPXのように未熟だとおっしゃるのですか?

musicalman avatar Oct 15 '21 11:10 musicalman

そういうことです。 気が向いたらサポートしますw

kuma4649 avatar Oct 16 '21 02:10 kuma4649

ああ、私はエミュレーションが悪かったことを知りませんでした。 私はそれを使うことに興奮しました。 しかし、私はあなたが快適に感じていないかどうかを理解しています。

musicalman avatar Oct 16 '21 04:10 musicalman

Hello! I just happened to find your project while searching for K054539 filter info while I improve the DPCM support in MAME.

You may use this table of deltas for your own K054539 emulation, which I have found to be more correct and do not result in a DC offset in samples I have tried: { 0, 1, 2, 4, 8, 16, 32, 64, 0, -64, -32, -16, -8, -4, -2, -1 }

As for reverb, it's probably a FIR filter (like the SPC700) but we do not know the taps for it yet.

SaxxonPike avatar May 17 '22 16:05 SaxxonPike

こんばんは。申し訳ありません。 音源chipの対応は基本的にvgmplayか、mameの対応を待ってそれに合わせてこちらも移植しています。 ですので、ご提案はありがたいのですが、mameの開発チームに向けていただいたほうが良いです。

kuma4649 avatar May 19 '22 10:05 kuma4649

You make a good point. So, I have contributed my changes to mame. They are now merged. I hope you can find this useful.

https://github.com/mamedev/mame/pull/9778

SaxxonPike avatar Jun 09 '22 14:06 SaxxonPike