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

Method connectInternal

hi_scripting/scripting/api/ScriptModulationMatrix.cpp:659–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659bool ScriptModulationMatrix::connectInternal(const String& sourceId, const String& targetId, bool addConnection)
660{
661 for (auto s : sourceData)
662 {
663 if (s->mod->getId() == sourceId)
664 {
665 for (auto t : targetData)
666 {
667 if (t->modId == targetId)
668 {
669 if (t->connect(sourceId, addConnection))
670 {
671 dynamic_cast<ScriptComponent*>(t->sc.getObject())->sendRepaintMessage();
672 refreshBypassStates();
673 return true;
674 }
675 }
676 }
677 }
678 }
679
680 refreshBypassStates();
681 return false;
682}
683
684bool ScriptModulationMatrix::updateIntensityInternal(String source, String target, float intensityValue)
685{

Callers 2

performMethod · 0.80
undoMethod · 0.80

Calls 4

getIdMethod · 0.45
connectMethod · 0.45
sendRepaintMessageMethod · 0.45
getObjectMethod · 0.45

Tested by

no test coverage detected