MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getModulatorsWithPropertyLua

Method getModulatorsWithPropertyLua

Source/Lua/CtrlrLuaManager.cpp:472–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472luabind::object CtrlrPanel::getModulatorsWithPropertyLua (const String &propertyName, const String &propertyValue)
473{
474 using namespace luabind;
475 object table = newtable (getCtrlrLuaManager().getLuaState());
476
477 for (int i = 0; i<ctrlrModulators.size(); i++)
478 {
479 if (ctrlrModulators[i]->getProperty(propertyName).toString() == propertyValue)
480 {
481 table[i + 1] = ctrlrModulators[i];
482 }
483 }
484
485 return (table);
486}
487
488/** @brief Get a a modulator with a specified property set to a specified value
489

Callers

nothing calls this directly

Calls 5

newtableFunction · 0.85
getLuaStateMethod · 0.45
sizeMethod · 0.45
toStringMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected