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

Method setAttribute

hi_scripting/scripting/api/ScriptingApi.cpp:5035–5046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5033}
5034
5035void 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
5048void ScriptingApi::Sampler::setUseStaticMatrix(bool shouldUseStaticMatrix)
5049{

Callers 8

controlCallbackMethod · 0.45
callSyncMethod · 0.45
updateConnectionDataMethod · 0.45
updateValueMethod · 0.45
initMethod · 0.45
setValueMethod · 0.45
setModulatorAttributeMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected