[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] New "bank offset" feature and selecting sfont/bank/prese
Re: [fluid-dev] New "bank offset" feature and selecting sfont/bank/preset...
Sun, 13 Jun 2004 17:25:19 +0200
On Jun 10, 2004, at 10:35 PM, Ken Ellinwood wrote:
The bank offset is a new argument to the command line "load"
operation. The bank offset value is added to the soundfont's internal
bank numbers and allows the presets of multiple soundfonts which
internally use the same banks to be accessed via MIDI commands. For
example, if you have two soundfonts which both contain presets in bank
0, it was previously impossible to select presets from both soundfonts
using MIDI commands. Now if you load one soundfont with bank offset 0
and the other with bank offset 1, presets from both can be assigned
via MIDI commands using combinations of bank select and program change.
Fluidsynth now assigns soundfont IDs starting with 1 instead of 0. The
soundfont ID value 0 can be used in the revised implementation of the
"select" command to simulate a MIDI bank-select and program change
message sequence for a given channel and should have the same effect
as sending MIDI bank select and program change. I.e., when using
soundfont ID 0 in "select" the soundfont list is searched for the
first existing specified preset in the given bank.
I applied the bank_offset.patch and the revised select command works
effectively for choosing presets from the first soundfont loaded to
replace any specific preset from the second soundfont loaded. Thanks!
This is a very useful feature indeed.
(Just one very minor point: the first soundfont still loads with an ID
> load ~/sf2/gm.sf2 1 0
loaded SoundFont has ID 0