coelckers / prboom-plus

This is a cleaned up copy of the PrBoom+ SVN repository as a courtesy for those interested in forking that port
289 stars 113 forks source link

[feature] Support .dls soundfont in Fluidsynth #361

Open lafoxxx92 opened 2 years ago

lafoxxx92 commented 2 years ago

Adding support for this format will allow to use C:\Windows\System32\drivers\gm.dls Which is based on Sound Canvas used during DOOM music composing Which everyone on Windows has (but doesn't seem to know it) Which is made by Microsoft (inventors of Windows) under exclusive license from Roland (inventors of Sound Canvas) And now without PORTMIDI (MS synth) disadvantages (as heard in Mock2 Map01)

Kappa971 commented 2 years ago

gm.dls file can be converted to .sf2 and then used with fluidsynth, on the internet there are guides to do it

alexey-lysiuk commented 2 years ago

DLS support is a matter of using FluidSynth DLL built with libinstpatch support. Official releases should have everything set up properly.

If you want to experiment with it, download the latest version, and replace existing libraries with files from bin folder. You need to rename libfluidsynth-3.dll to libfluidsynth-2.dll afterwards replacing old library. After that, specify full path including file extension to .dls soundfont in the config file.

lafoxxx92 commented 2 years ago

If you want to experiment with it, download the latest version, and replace existing libraries with files from bin folder. You need to rename libfluidsynth-3.dll to libfluidsynth-2.dll afterwards replacing old library. After that, specify full path including file extension to .dls soundfont in the config file.

The solution works, but the MIDI sounds monophonic (only one instrument at a time is played). Not sure if it's prboom+ or fluidsynth issue though. Converting to .sf2 resolves the issue.