| 4683 | } |
| 4684 | |
| 4685 | void ScriptingApi::Sampler::setTimestretchOptions(var newOptions) |
| 4686 | { |
| 4687 | ModulatorSampler* s = dynamic_cast<ModulatorSampler*>(sampler.get()); |
| 4688 | |
| 4689 | if (s == nullptr) |
| 4690 | reportScriptError("Invalid sampler call"); |
| 4691 | |
| 4692 | ModulatorSampler::TimestretchOptions no; |
| 4693 | no.fromJSON(newOptions); |
| 4694 | s->setTimestretchOptions(no); |
| 4695 | } |
| 4696 | |
| 4697 | var ScriptingApi::Sampler::getReleaseStartOptions() |
| 4698 | { |