5835 |
* @throws gig::Exception if given script @p slot index is invalid or given |
* @throws gig::Exception if given script @p slot index is invalid or given |
5836 |
* @p variable name is empty |
* @p variable name is empty |
5837 |
*/ |
*/ |
5838 |
void Instrument::SetScriptPatchVariable(int slot, String variable, String value) { |
void Instrument::SetScriptPatchVariable(size_t slot, String variable, String value) { |
5839 |
if (variable.empty()) |
if (variable.empty()) |
5840 |
throw Exception("Variable name must not be empty"); |
throw Exception("Variable name must not be empty"); |
5841 |
Script* script = GetScriptOfSlot(slot); |
Script* script = GetScriptOfSlot(slot); |