106 |
throw InstrumentManagerException("resource was not created"); |
throw InstrumentManagerException("resource was not created"); |
107 |
} |
} |
108 |
|
|
109 |
|
if (newInstrument->ScriptSlotCount() > 1) { |
110 |
|
std::cerr << "WARNING: Executing more than one real-time instrument script slot is not implemented yet!\n"; |
111 |
|
} |
112 |
::gig::Script* script = newInstrument->GetScriptOfSlot(0); |
::gig::Script* script = newInstrument->GetScriptOfSlot(0); |
113 |
if (script) { |
if (script) { |
114 |
String sourceCode = script->GetScriptAsText(); |
String sourceCode = script->GetScriptAsText(); |
115 |
loadInstrumentScript(sourceCode); |
LoadInstrumentScript(sourceCode); |
116 |
} |
} |
117 |
} |
} |
118 |
catch (RIFF::Exception e) { |
catch (RIFF::Exception e) { |