MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / initParameters

Method initParameters

Source/Panels/SpectrogramPanel/Multiband.cpp:246–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void 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
264void Multiband::setStatesWhenAdd(int insertionIndex)
265{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected