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 bankand does not give any error. Even outrageously wrong banks such as 200 do not givean error. This makes it very difficult for a user to understand what is going on when he changesbanks, (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 usingfluid_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 WishesDavid
From: Tom M. <tom.m...@googlemail.com> To: David Back <csw...@yahoo.co.uk> Cc: FluidSynth mailing list <fluid-dev@nongnu.org> 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
_______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev