@@ -76,6 +76,11 @@ void LargeConcertHallB::processBlock(juce::AudioBuffer<float>& buffer, juce::Mid
7676{
7777 juce::ScopedNoDenormals noDenormals;
7878
79+ // set LFO rate
80+ lfoParameters = lfo.getParameters ();
81+ lfoParameters.frequency_Hz = mParameters .modRate ;
82+ lfo.setParameters (lfoParameters);
83+
7984 // set delays
8085 // filters
8186 inputBandwidth.setDelay (1 );
@@ -216,7 +221,7 @@ void LargeConcertHallB::processBlock(juce::AudioBuffer<float>& buffer, juce::Mid
216221 // chorus
217222 allpassChorusL.pushSample (0 , allpassOutputInnermost);
218223 allpassOutputInnermost *= 0.781 ;
219- allpassOutputInnermost += allpassChorusL.popSample (0 , scale (lfoOutput.normalOutput , -1 .0f , 1 .0f , 1 .0f , 12 .0f )) * 0.219 ; // modulate here
224+ allpassOutputInnermost += allpassChorusL.popSample (0 , scale (lfoOutput.normalOutput , -1 .0f , 1 .0f , 1 .0f , 12 .0f * mParameters . modDepth )) * 0.219 ; // modulate here
220225 // finish innermost
221226 feedbackInnermost = allpassOutputInnermost * 0.25 * mParameters .diffusion ;
222227 reverbData[sample] += feedbackInnermost;
@@ -305,7 +310,7 @@ void LargeConcertHallB::processBlock(juce::AudioBuffer<float>& buffer, juce::Mid
305310 // chorus
306311 allpassChorusR.pushSample (0 , allpassOutputInnermost);
307312 allpassOutputInnermost *= 0.781 ;
308- allpassOutputInnermost += allpassChorusL.popSample (0 , scale (lfoOutput.quadPhaseOutput_pos , -1 .0f , 1 .0f , 1 .0f , 12 .0f )) * 0.219 ; // modulate here
313+ allpassOutputInnermost += allpassChorusL.popSample (0 , scale (lfoOutput.quadPhaseOutput_pos , -1 .0f , 1 .0f , 1 .0f , 12 .0f * mParameters . modDepth )) * 0.219 ; // modulate here
309314 // finish innermost
310315 feedbackInnermost = allpassOutputInnermost * 0.25 * mParameters .diffusion ;
311316 reverbData[sample] += feedbackInnermost;
0 commit comments