logue / sf2synth.js

JavaScriptで書かれたSoundFontによるMIDI音源。GM Level2およびXG Lite相当の音源に対応。※Developブランチが実際動いているプログラムです。
https://logue.github.io/sf2synth.js/
MIT License
27 stars 5 forks source link

Broken with 2.01 soundfonts #10

Open spessasus opened 3 months ago

spessasus commented 3 months ago

Hi, I've found an issue with your synth. Any soundfonts that use modulators seem to be broken, the sound is incorrect and the pitch is incorrect. For example GeneralUser GS has incorrectly sounding piano.

logue commented 1 week ago

Does this happen with all of the SoundFonts listed here? https://github.com/logue/sf2synth.js/tree/develop/public

spessasus commented 1 week ago

Does this happen with all of the SoundFonts listed here? https://github.com/logue/sf2synth.js/tree/develop/public

It works fine with the stock one (XG SoundSet) but the A320U's "Acoustic Piano" patch is very highly pitched up. Other presets seem to work fine.

But as mentioned before, GUGS is completely broken (and most other soundfonts).

Try this one: microsoft_gm_3.zip. All presets are pitched up by a ton and the upper half of the keyboard does not work at all.

NOTE: I'm testing all this here: https://logue.dev/sf2synth.js/ Both Chromium and Firefox are broken.

logue commented 1 week ago

Ah, it's a known bug. I'm having a lot of trouble with this. I think it's probably a problem with the SoundFont parsing process (sf2.js), but I don't know what the cause is.

spessasus commented 1 week ago

Maybe take a look at my implementation and see if that helps? It's JavaScript too.