3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005-2008 Christian Schoenebeck * |
* Copyright (C) 2005 - 2020 Christian Schoenebeck * |
7 |
* Copyright (C) 2009 - 2012 Christian Schoenebeck and Grigor Iliev * |
* Copyright (C) 2009 - 2012 Grigor Iliev * |
8 |
* Copyright (C) 2012 - 2016 Christian Schoenebeck and Andreas Persson * |
* Copyright (C) 2012 - 2016 Andreas Persson * |
9 |
* * |
* * |
10 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
11 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
118 |
::gig::Script* script = newInstrument->GetScriptOfSlot(0); |
::gig::Script* script = newInstrument->GetScriptOfSlot(0); |
119 |
if (script) { |
if (script) { |
120 |
String sourceCode = script->GetScriptAsText(); |
String sourceCode = script->GetScriptAsText(); |
121 |
LoadInstrumentScript(sourceCode); |
std::map<String,String> patchVars = newInstrument->GetScriptPatchVariables(0); |
122 |
|
LoadInstrumentScript(sourceCode, patchVars); |
123 |
} |
} |
124 |
CurrentGigScript = script; |
CurrentGigScript = script; |
125 |
} |
} |