| 5033 | } |
| 5034 | |
| 5035 | void ScriptingApi::Sampler::setAttribute(int index, var newValue) |
| 5036 | { |
| 5037 | ModulatorSampler *s = static_cast<ModulatorSampler*>(sampler.get()); |
| 5038 | |
| 5039 | if (s == nullptr) |
| 5040 | { |
| 5041 | reportScriptError("setAttribute() only works with Samplers."); |
| 5042 | RETURN_VOID_IF_NO_THROW() |
| 5043 | } |
| 5044 | |
| 5045 | s->setAttribute(index, newValue, ProcessorHelpers::getAttributeNotificationType()); |
| 5046 | } |
| 5047 | |
| 5048 | void ScriptingApi::Sampler::setUseStaticMatrix(bool shouldUseStaticMatrix) |
| 5049 | { |
no test coverage detected