4610 |
scriptPoolFileOffsets.clear(); |
scriptPoolFileOffsets.clear(); |
4611 |
} |
} |
4612 |
|
|
4613 |
/** @brief Add new instrument script slot (gig format extension) |
/** @brief Get instrument script (gig format extension). |
4614 |
|
* |
4615 |
|
* Returns the real-time instrument script of instrument script slot |
4616 |
|
* @a index. |
4617 |
|
* |
4618 |
|
* @note This is an own format extension which did not exist i.e. in the |
4619 |
|
* GigaStudio 4 software. It will currently only work with LinuxSampler and |
4620 |
|
* gigedit. |
4621 |
|
* |
4622 |
|
* @param index - instrument script slot index |
4623 |
|
* @returns script or NULL if index is out of bounds |
4624 |
|
*/ |
4625 |
|
Script* Instrument::GetScriptOfSlot(uint index) { |
4626 |
|
LoadScripts(); |
4627 |
|
if (index >= pScriptRefs->size()) return NULL; |
4628 |
|
return pScriptRefs->at(index).script; |
4629 |
|
} |
4630 |
|
|
4631 |
|
/** @brief Add new instrument script slot (gig format extension). |
4632 |
* |
* |
4633 |
* Add the given real-time instrument script reference to this instrument, |
* Add the given real-time instrument script reference to this instrument, |
4634 |
* which shall be executed by the sampler for for this instrument. The |
* which shall be executed by the sampler for for this instrument. The |