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

Method getModulatorsWithProperty

Source/Core/CtrlrPanel/CtrlrPanel.cpp:697–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697const Array <CtrlrModulator*> CtrlrPanel::getModulatorsWithProperty(const Identifier &propertyName, const var &propertyValue)
698{
699 Array <CtrlrModulator *>ret;
700
701 for (int i=0; i<ctrlrModulators.size(); i++)
702 {
703 if (ctrlrModulators[i]->getProperty(propertyName) == propertyValue)
704 {
705 ret.addIfNotAlreadyThere(ctrlrModulators[i]);
706 }
707
708 if (ctrlrModulators[i]->getComponent())
709 {
710 if (ctrlrModulators[i]->getComponent()->getProperty(propertyName) == propertyValue)
711 {
712 ret.addIfNotAlreadyThere(ctrlrModulators[i]);
713 }
714 }
715 }
716
717 return (ret);
718}
719
720const String CtrlrPanel::getUniqueModulatorName(const String &proposedName)
721{

Callers 2

canvasStateRestoredMethod · 0.80
canvasStateRestoredMethod · 0.80

Calls 4

sizeMethod · 0.45
getPropertyMethod · 0.45
addIfNotAlreadyThereMethod · 0.45
getComponentMethod · 0.45

Tested by

no test coverage detected