MCPcopy Create free account
hub / github.com/christophhart/HISE / setReleaseStartOptions

Method setReleaseStartOptions

hi_scripting/scripting/api/ScriptingApi.cpp:4713–4729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4711}
4712
4713void ScriptingApi::Sampler::setReleaseStartOptions(var data)
4714{
4715#if HISE_SAMPLER_ALLOW_RELEASE_START
4716 ModulatorSampler* s = dynamic_cast<ModulatorSampler*>(sampler.get());
4717
4718 if (s == nullptr)
4719 reportScriptError("Invalid sampler call");
4720
4721 StreamingHelpers::ReleaseStartOptions::Ptr newOptions = new StreamingHelpers::ReleaseStartOptions();
4722
4723 newOptions->fromJSON(data);
4724
4725 s->getSampleMap()->setReleaseStartOptions(newOptions);
4726#else
4727 reportScriptError("HISE_SAMPLER_ALLOW_RELEASE_START is not enabled");
4728#endif
4729}
4730
4731String ScriptingApi::Sampler::getAudioWaveformContentAsBase64(var presetObj)
4732{

Callers 1

onPropertyUpdateMethod · 0.45

Calls 2

getMethod · 0.45
fromJSONMethod · 0.45

Tested by

no test coverage detected