Skip to content

Issue when loading sf2 files with presets bank:program not starting at 0:0 #64

@zigmhount

Description

@zigmhount

Hello,

I'm using the ELSE library for Pure Data, and in particular the object sfont~ which uses FluidLite to load soundfonts.
I reported here an issue that seems to be caused by FluidLite failing to load soundfonts that contain presets not starting with bank 000 program 000:

In the attached examples, test_sfont_1.sf2 loads properly whereas test_sfont_2.sf2 doesn't

test_soundfonts_sfont.zip

test_sfont_1.sf2
------------------- presets -------------------
001 - bank (0) pgm (0) name (Bright Grand)

test_sfont_2.sf2
------------------- presets -------------------
001 - bank (1) pgm (1) name (Bright Grand)

I met this use case when using the sf2 files generated by FluidPlug, which reorganizes the presets from Fluid3GM.sf2 into separate, smaller sf2 files for dedicated lv2 plugins, grouped by "categories", e.g. the resulting FluidBass.sf2 and FluidDrums.sf2 contain the following presets:

Loaded soundfont: FluidBass.sf2
------------------- presets -------------------
001 - bank (0) pgm (32) name (Acoustic Bass)
002 - bank (0) pgm (33) name (Fingered Bass)
003 - bank (0) pgm (34) name (Picked Bass)
004 - bank (0) pgm (35) name (Fretless Bass)
005 - bank (0) pgm (36) name (Slap Bass)
006 - bank (0) pgm (37) name (Pop Bass)
007 - bank (0) pgm (38) name (Synth Bass 1)
008 - bank (0) pgm (39) name (Synth Bass 2)


Loaded soundfont: FluidDrums.sf2
------------------- presets -------------------
001 - bank (128) pgm (0) name (Standard)
002 - bank (128) pgm (1) name (Standard 1)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions