#pragma once #include "../SynthVoice.h" void NeuralSynthVoice::renderChorus(juce::dsp::AudioBlock &block) { // ================================================================ // Chorus // ================================================================ if (shared.chorusOn && shared.chorusOn->load() > 0.5f) { auto& chorus = chain.get(); if (shared.chorusCentre) chorus.setCentreDelay (shared.chorusCentre->load()); if (shared.chorusDepth) chorus.setDepth (shared.chorusDepth->load()); if (shared.chorusFeedback) chorus.setFeedback (shared.chorusFeedback->load()); if (shared.chorusMix) chorus.setMix (shared.chorusMix->load()); if (shared.chorusRate) chorus.setRate (shared.chorusRate->load()); chain.get().process (juce::dsp::ProcessContextReplacing (block)); } }