--- linuxsampler/trunk/src/engines/gig/EngineChannel.cpp 2014/06/04 01:59:56 2593 +++ linuxsampler/trunk/src/engines/gig/EngineChannel.cpp 2014/06/05 00:16:25 2594 @@ -105,6 +105,12 @@ if (!newInstrument) { throw InstrumentManagerException("resource was not created"); } + + ::gig::Script* script = newInstrument->GetScriptOfSlot(0); + if (script) { + String sourceCode = script->GetScriptAsText(); + loadInstrumentScript(sourceCode); + } } catch (RIFF::Exception e) { InstrumentStat = -2;