fluid-dev
[Top][All Lists]
Advanced

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

Re: [fluid-dev] Fluidsynth bank select


From: David Back
Subject: Re: [fluid-dev] Fluidsynth bank select
Date: Mon, 1 Jan 2018 18:17:25 +0000 (UTC)

Hi Tom

Thanks for the update, it makes better sense now. fluid_synth_bank_select()
has some nasty by-products:
1) If a selected bank does not exist it (appears to) ignore the command to change bank
and does not give any error. Even outrageously wrong banks such as 200 do not give
an error. 

This makes it very difficult for a user to understand what is going on when he changes
banks, (has it or has it not done what it was asked to do -- there is no way of knowing).

Thus it is unsuitable for use in my organ and I have switched back to using
fluid_synth_set_bank_offset() for selecting banks as it behaves better.

I will never be loading more than one sound font at a time.

Best Wishes
David




From: Tom M. <address@hidden>
To: David Back <address@hidden>
Cc: FluidSynth mailing list <address@hidden>
Sent: Saturday, 30 December 2017, 14:34
Subject: Re: [fluid-dev] Fluidsynth bank select

I've updated the docs regarding "offset" and "reset_preset":

fluid_synth_set_bank_offset()
http://www.fluidsynth.org/api/synth_8h.html#a8b533b00ff0884d3a2bb3f61abfe7682
fluid_synth_sfload()
http://www.fluidsynth.org/api/synth_8h.html#aaf9376cf7189f9c64da5ffdeed85c9c4


It seems to be intended that fluid_synth_bank_select() doesnt assign
instruments immediately. Instruments may be substituted if a matching
bank/preset config is not provided by a soundfont. Doing this directly
after fluid_synth_bank_select() before having a chance to call e.g.
fluid_synth_program_change() would prevent the user from selecting a
valid preset/bank config. Thus I added a note to
fluid_synth_bank_select() and fluid_synth_sfont_select():
http://www.fluidsynth.org/api/synth_8h.html#a97b0f45f00922a46b1c1961d5b1f8cb5



Tom



reply via email to

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