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

Method getControlValue

hi_scripting/scripting/ScriptProcessor.cpp:176–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176float ProcessorWithScriptingContent::getControlValue(int index) const
177{
178 if (content != nullptr && index < content->getNumComponents())
179 return content->getComponent(index)->getValue();
180
181 else return 1.0f;
182}
183
184void ProcessorWithScriptingContent::controlCallback(ScriptingApi::Content::ScriptComponent *component, var controllerValue)
185{

Callers 1

getParameterMethod · 0.80

Calls 3

getNumComponentsMethod · 0.45
getValueMethod · 0.45
getComponentMethod · 0.45

Tested by

no test coverage detected