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

Method connectionChanged

hi_scripting/scripting/ScriptProcessorModules.cpp:714–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714void JavascriptMasterEffect::connectionChanged()
715{
716 channels.clear();
717 channelIndexes.clear();
718
719 for (int i = 0; i < getMatrix().getNumSourceChannels(); i++)
720 {
721 if (getMatrix().getConnectionForSourceChannel(i) >= 0)
722 {
723 channels.add(buffers[channelIndexes.size()]);
724 channelIndexes.add(i);
725 }
726 }
727
728 auto numChannels = channels.size();
729
730 for (auto n : networks)
731 {
732 n->setNumChannels(numChannels);
733 }
734
735 channelData = var(channels);
736}
737
738ProcessorEditorBody * JavascriptMasterEffect::createEditor(ProcessorEditor *parentEditor)
739{

Callers

nothing calls this directly

Calls 7

varFunction · 0.85
getNumSourceChannelsMethod · 0.80
clearMethod · 0.45
addMethod · 0.45
sizeMethod · 0.45
setNumChannelsMethod · 0.45

Tested by

no test coverage detected