Hi, John,
Thank you for the clue.
As a result, I was able to find code in the function fluid_handle_inst()
in file fluid_cmd.c that should hopefully help me see what to do.
May the Lord bless you,
Philip
John O'Hagan wrote:
On Wed, 5 Nov 2008, O. P. Martin wrote:
[...]
2. Coming up, I am going to want to retrieve the program name text for
a particular patch, but I don't remember seeing an api for this ? Maybe
this could be combined with a mechanism for enumerating the available
bank / program numbers available in a font.
[...]
If you type "inst" followed by the soundfont number (e.g. "1" if you only have
one loaded) at the fluidsynth command prompt, you get a list like the one you
want, so I guess if your program remembers which program-change commands it
sent and where, you could get the name of the current patch.
You can send this and other fluidsynth commands (type "help") from your
program via a socket connection as described on this list in the thread
titled "How to send manual midi commands to fluidsynth from another
program?".
HTH,
John O'Hagan
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fluid-dev