Hi Josh,

I do agree that the appropriate instrument should be used and your approach is 
fine if FS has one soundfont loaded and it is GM.

>From time to time I try to load several soundfonts to override some 
>instruments.  Each soundfont has its own bank 0.  FS allows several soundfonts 
>to be loaded, in any order, so bank 0 (of which loaded soundfonts???) of a 
>non-GM soundfont may not have 128 instruments and may not help in this case.

One example is a bit of a stretch.  Let's say I want to test a special 
soundfont that has only 2-3 instruments.  I can try to load all channels with 
piano.  Playing some midi to try out those non-piano instruments.  So when the 
midi selected other instruments that my soundfont doesn't have, it should keep 
the already loaded piano.  This way, I can hear and have a feel for the 
instrument I'm testing along with piano and still hear the full song or rhythm, 
or example.  Of course I could substitute the piano with silence-instrument for 
such test, too.

I suggest you implement your approach anyway, with that last option as a last 
resort.  Only because I think I can try loading soundfonts in any orders on a 
PCI SB 5.1 Live! and it doesn't have any muted-channel problem I currently have 
with FS.

Best regards,

Jimmy



--- On Wed, 1/28/09, Josh Green <j...@resonance.org> wrote:

> From: Josh Green <j...@resonance.org>
> Subject: Re: [fluid-dev] invalid instrument/drum selection
> To: wg20...@yahoo.com
> Cc: fluid-dev@nongnu.org
> Date: Wednesday, January 28, 2009, 10:18 AM
> Hi Jimmy,
> 
> Just keeping the already selected instrument when an
> invalid selection
> is received seems strange to me.  Do you think that would
> create the
> desired effect in most MIDI files?  It is a case of the
> MIDI file
> expecting an instrument to be present, which is not, right?
>  I'm not
> convinced that just keeping the previous instrument
> selection is any
> better than trying to be a little smarter about it,
> depending on the
> mode (GM, GS, XG, etc).  If a SoundFont was loaded, which
> supported all
> the instruments of the playing MIDI file, then there would
> be no issue.
> 
> Best regards,
>       Josh



      


_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to