diff --git a/modules/juce_dsp/processors/juce_ProcessorChain.h b/modules/juce_dsp/processors/juce_ProcessorChain.h index b3370bfa5a56..65a5475ede6e 100644 --- a/modules/juce_dsp/processors/juce_ProcessorChain.h +++ b/modules/juce_dsp/processors/juce_ProcessorChain.h @@ -96,6 +96,12 @@ class ProcessorChain processors); } + /** Call the given function on each processor */ + template + void forEach(Fn &&fn) { + detail::forEachInTuple([&](auto &proc, auto) { fn(proc); }, processors); + } + private: template void processOne (const Context& context, Proc& proc, std::integral_constant) noexcept