fix pitch feedback loop; tune analyzer UI and dry/wet reflection

This commit is contained in:
Armin 2026-08-10 15:36:11 +02:00
commit 2359bfd579
5 changed files with 57 additions and 33 deletions

View file

@ -120,6 +120,8 @@ void HorizontAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juc
const bool haveLeft = buffer.getNumChannels() > 0 && inputChannels > 0;
const bool haveRight = buffer.getNumChannels() > 1 && inputChannels > 1;
const bool canCaptureWet = wetScratch.size() >= (size_t) numSamples;
const float wetVal = dryWetParam->load();
const float dryGain = 1.0f - wetVal;
for (int s = 0; s < numSamples; ++s)
{
@ -136,8 +138,8 @@ void HorizontAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juc
if (canCaptureWet)
{
wetScratch[(size_t) s] = engine.getLastWetL();
dryScratch[(size_t) s] = inL;
wetScratch[(size_t) s] = engine.getLastWetL() * wetVal;
dryScratch[(size_t) s] = inL * dryGain;
}
}