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

Method queryFunction

hi_scripting/scripting/api/ScriptModulationMatrix.cpp:1447–1467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1445}
1446
1447bool ScriptModulationMatrix::ModulatorTargetData::queryFunction(int index, bool checkTicked) const
1448{
1449 if (checkTicked)
1450 {
1451 auto sm = parent->sourceData[index]->mod.get();
1452
1453 return forEach(sm, [index](Modulator* sm, ModulatorTargetData& data, GlobalModulator* gm)
1454 {
1455 return gm->getOriginalModulator() == sm;
1456 });
1457 }
1458 else
1459 {
1460 auto sm = parent->sourceData[index]->mod.get();
1461
1462 return forEach(sm, [](Modulator*, ModulatorTargetData& d, GlobalModulator* gm)
1463 {
1464 return !gm->isConnected();
1465 });
1466 }
1467}
1468
1469bool ScriptModulationMatrix::ModulatorTargetData::forEach(Modulator* sourceMod, const IteratorFunction& f) const
1470{

Callers 2

getModulationDataMethod · 0.80

Calls 5

getOriginalModulatorMethod · 0.80
containsTargetMethod · 0.80
forEachFunction · 0.50
getMethod · 0.45
isConnectedMethod · 0.45

Tested by

no test coverage detected