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

Method prepare

hi_scripting/scripting/scriptnode/api/NodeBase.cpp:101–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void NodeBase::prepare(PrepareSpecs specs)
102{
103 if(lastSpecs.numChannels == 0)
104 setBypassed(isBypassed());
105
106 lastSpecs = specs;
107 cpuUsage = 0.0;
108
109 for (auto p : parameters)
110 {
111 if(p == nullptr)
112 continue;
113
114 if (p->isModulated())
115 continue;
116
117 auto v = p->getValue();
118 p->setValueAsync(v);
119 }
120}
121
122DspNetwork* NodeBase::getRootNetwork() const
123{

Callers 1

prepareToPlayMethod · 0.45

Calls 5

isModulatedMethod · 0.80
setValueAsyncMethod · 0.80
setBypassedFunction · 0.50
isBypassedFunction · 0.50
getValueMethod · 0.45

Tested by

no test coverage detected