How does one get list of modulators in a preset? #719
-
I'm working on some code using Python's ctypes to bind to various Fluidsynth functions. I'm looking for a way to get the list of modulators in a preset, or perhaps the list of instrument+preset modulators. It seems like they might be in instrument zone and preset zone data structures that are pointed to somewhere in the data member of a fluid_preset_t, and could perhaps be accessed using the fluid_preset_get_data function in fluid_sfont.c, but I'm having trouble unraveling what fluid_preset_t->data would look like. Any help on how to do this or whether it is, in general, possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't think we provide a public API to retrieve the modulators of a preset. That knowledge is contained inside the private implementations of the soundfont loader. Depending on your needs, it might be easier to use a library like libinstpatch to retrieve that information from a Soundfont. |
Beta Was this translation helpful? Give feedback.
I don't think we provide a public API to retrieve the modulators of a preset. That knowledge is contained inside the private implementations of the soundfont loader. Depending on your needs, it might be easier to use a library like libinstpatch to retrieve that information from a Soundfont.