| 244 | } |
| 245 | |
| 246 | void Multiband::initParameters(int bandindex) |
| 247 | { |
| 248 | if (bandindex < 0 || bandindex >= paramsArrays.size()) |
| 249 | return; |
| 250 | |
| 251 | const auto& paramArray = paramsArrays[bandindex]; |
| 252 | for (const auto& param : processor.getParameters()) |
| 253 | { |
| 254 | if (auto* p = dynamic_cast<juce::AudioProcessorParameterWithID*>(param)) |
| 255 | { |
| 256 | if (isParamInArray(p->getParameterID(), paramArray)) |
| 257 | { |
| 258 | p->setValueNotifyingHost(p->getDefaultValue()); |
| 259 | } |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | void Multiband::setStatesWhenAdd(int insertionIndex) |
| 265 | { |
nothing calls this directly
no outgoing calls
no test coverage detected