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

Method ScriptingSlotFX

hi_scripting/scripting/api/ScriptingApiObjects.cpp:3446–3473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3444};
3445
3446ScriptingObjects::ScriptingSlotFX::ScriptingSlotFX(ProcessorWithScriptingContent *p, EffectProcessor *fx) :
3447ConstScriptingObject(p, fx != nullptr ? fx->getNumParameters()+1 : 1),
3448slotFX(fx)
3449{
3450 if (fx != nullptr)
3451 {
3452 setName(fx->getId());
3453
3454 addScriptParameters(this, slotFX.get());
3455
3456 for (int i = 0; i < fx->getNumParameters(); i++)
3457 {
3458 addConstant(fx->getIdentifierForParameterIndex(i).toString(), var(i));
3459 }
3460 }
3461 else
3462 {
3463 setName("Invalid Effect");
3464 }
3465
3466 ADD_API_METHOD_1(setEffect);
3467 ADD_API_METHOD_0(getCurrentEffect);
3468 ADD_API_METHOD_0(clear);
3469 ADD_API_METHOD_1(swap);
3470 ADD_API_METHOD_0(getModuleList);
3471 ADD_API_METHOD_0(getParameterProperties);
3472 ADD_API_METHOD_0(getCurrentEffectId);
3473};
3474
3475
3476

Callers

nothing calls this directly

Calls 8

addScriptParametersFunction · 0.85
varFunction · 0.85
setNameFunction · 0.50
getNumParametersMethod · 0.45
getIdMethod · 0.45
getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected