Hello,
when importing GM midi files sf2player often (almost ever) fails to set the 
right drumkit bank so it is possible to add the following lines:
---------------
if (evt->chan!=9) 
{
ch->it_inst->childModel( "bank" )->setValue( 0);
ch->it_inst->childModel( "patch" )->setValue( prog );
}
else
{
ch->it_inst->childModel( "bank" )->setValue( 128 );
ch->it_inst->childModel( "patch" )->setValue( prog );
}

----------------
in plugins/MidiImport.cpp
in
bool MidiImport::readSMF( trackContainer * _tc )
after

if( update == "programi" )
                                {
                                        long prog = evt->get_integer_value();
                                        if( ch->isSF2 )
                                        {

This works for most GM files.
It can interfere with not GM or not compliant midi files so it's better to put 
a messagebox before.
A.Maci
PS 
because of mail problems this message could have been already received: sorry.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to