| 695 | } |
| 696 | |
| 697 | const 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 | |
| 720 | const String CtrlrPanel::getUniqueModulatorName(const String &proposedName) |
| 721 | { |
no test coverage detected