Bassmidi: problem with a certain Soundfont

Started by Karl Eick,

Karl Eick

Hello,
I just uploaded the aspirin soundfont to the FTP server. This soundfont seems to have issues with Bassmidi, the pitches are all over the place. In SynthFont, it works correctly. Could you please look into that? Thanks in advance!

Ian @ un4seen

The uploaded SF2 file is non-standard. It sounds wrong on SoundBlaster hardware too, and FluidSynth refuses to even load it. The problem is its generators. The SF2 spec requires that "KeyRange" comes first (when present) and "sampleID" comes last in a zone, but they don't in this file. BASSMIDI doesn't actually care about the position of "KeyRange" but it does stop at "sampleID", so generators that follow will be ignored.

I figured that can't be how the soundfont was originally, so I had a look for the original and found it here:

    https://musical-artifacts.com/artifacts/7313

That one is a valid SF2 file, so it seems your copy has been edited in some way?

Karl Eick

#2
Blimy! I grabbed the original file now, and it now really does sound right! I have no idea what happened to the file I uploaded. I know the source where I got it from, but I may need to ask the guy who owns it what's the matter. Thanks so much for your investigation!