From: <ins...@li...> - 2010-08-26 10:49:24
|
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. |