fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Extracting preset names and numbers


From: Marcus Weseloh
Subject: Re: [fluid-dev] Extracting preset names and numbers
Date: Thu, 27 Sep 2018 13:13:55 +0200

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

Am Mi., 26. Sep. 2018 um 23:53 Uhr schrieb Ben Gonzales <address@hidden>:
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/fluid-dev

reply via email to

[Prev in Thread] Current Thread [Next in Thread]