On Thu, Sep 27, 2018 at 1:13 PM, Marcus Weseloh <mar...@weseloh.cc> wrote: > Hey Ben, > > there's the sf2utils package: https://pypi.org/project/sf2utils/ > > I've used this for a while for exactly the same use-case: reading the preset > names and displaying them in a list. It works quite well, but is a little > slow opening Soundfonds with a large number of presets / instruments / > zones. > > I've since created my own module that is much faster, as it only reads the > preset names and doesn't load all the information about generators, > modulators, instruments etc. You can find the code here: > https://github.com/midigurdy/mg-core/blob/7af42f4bedc7fd071fab139b21e7444d24e5b361/mgurdy/src/mg/sf2.py#L160 > > Cheers, > > Marcus And I wrote something in C [1] - if I only had known about sf2utils...
Andreas [1] https://github.com/schnitzeltony/soundfont-cmdline-tools > > Am Mi., 26. Sep. 2018 um 23:53 Uhr schrieb Ben Gonzales <b...@gonzos.net>: >> >> Hi all. >> >> I'm playing around with a headless RPi with fluidsynth and I'm thinking >> of incorporating a small display with button controls to select things >> like the preset, the octave, transpose, etc. I'd like to be able to >> extract the preset names and numbers from the target sf2 file so I could >> use them in the display program, but I'm having difficulty finding a >> suitable utility. >> >> Any suggestions? Python would be nice... >> >> Ben >> >> _______________________________________________ >> fluid-dev mailing list >> fluid-dev@nongnu.org >> https://lists.nongnu.org/mailman/listinfo/fluid-dev > > > _______________________________________________ > fluid-dev mailing list > fluid-dev@nongnu.org > https://lists.nongnu.org/mailman/listinfo/fluid-dev > _______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev