[Top][All Lists]

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

Re: [fluid-dev] More commits on the way to 1.1.1

From: josh
Subject: Re: [fluid-dev] More commits on the way to 1.1.1
Date: Mon, 16 Nov 2009 10:38:48 -0800
User-agent: Internet Messaging Program (IMP) H3 (4.1.6)

Quoting Rui Nuno Capela <address@hidden>:
No it doesn't seem there is a way to set a single channel to
unassigned with the public API.  There is a private function called
fluid_synth_set_preset, which could be used to set the preset to NULL,
which would have the effect of setting it to unassigned, but that
isn't much help in your case.  How do you see this being useful?

well, it's been a _long_ time missing function. if one can assign one
channel preset, why can't the same be reset unassigned, just for closure,
functional completeness sake?

iirc, there were some requests on this regard from time to time, that is,
a way to set one channel silent, unassigned, with no preset, permanently.

fact is, once you assign a preset to a channel, which is initially
unassigned for instance, you're doomed to life with that setting. you can
choose another preset but you can't revert the move. if it was a user
mistake, then he/she has to unload the soundfont and do it all over by
loading it again first. it might be just a little hindrance but i think now
is the time to fill the gap and extend the (public) api in that regard,
while we have a chance ;)

We always have a chance :)  Sure I can add it.  How about something like:

int fluid_synth_program_clear (fluid_synth_t *synth, int chan);

Something to note though, is that it will keep its sfont ID, bank and program numbers. If any new SoundFont files get loaded with reset_presets enabled or fluid_synth_program_reset() gets called, then it will get re-assigned with whatever matching preset that corresponds with.

rncbc aka Rui Nuno Capela



reply via email to

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