fluid-dev
[Top][All Lists]
Advanced

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

Re: [fluid-dev] New "bank offset" feature and selecting sfont/bank/prese


From: Ebrahim Mayat
Subject: Re: [fluid-dev] New "bank offset" feature and selecting sfont/bank/preset...
Date: 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.

(snip)

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.

Hi

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 of 0.)

> load ~/sf2/gm.sf2 1 0
loaded SoundFont has ID 0

Ebrahim





reply via email to

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